Code Monkey home page Code Monkey logo

custom-centered-random-distribution-visualizer's Introduction

Custom-Centered Random Distribution Visualizer

This project provides a visual representation of a random distribution centered at a custom point within a specified range.

Overview

This web application generates a bar chart illustrating the frequency distribution of random values within a user-defined range, with the center point adjustable by the user.

How to Use

  1. Open the HTML file (index.html) in a web browser.
  2. Use the sliders to adjust the minimum value, maximum value, and center point.
  3. The bar chart will dynamically update to reflect the frequency distribution based on the selected parameters.

Dependencies

  • Plotly.js: The Plotly JavaScript library is used to create the interactive bar chart.

Project Structure

  • index.html: Contains the HTML structure of the web application, including sliders for user input and a container for the chart.
  • Inline JavaScript: Includes functions for generating random numbers, calculating frequencies, and updating the chart based on user input.

Functionality

  • The f(x) function defines the mathematical function used to generate random numbers.
  • The generateNumber() function generates a random number within a specified range, centered at a given point.
  • The calculateFrequency() function calculates the frequency distribution of the generated numbers.
  • The updateChart() function updates the bar chart based on the user's input from the sliders.

custom-centered-random-distribution-visualizer's People

Contributors

truemajner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.