richarddmorey/stat-distributions-js
소개
Javascript library for the visualization of statistical distributions
과학 및 공학측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalstat-distributions-js
Javascript library for the visualization of statistical distributions
What the library does
Allows for interactive visualizations of probability distributions. The goal of this library is to offer a simple way to define any distribution one likes, and then to immediately be able to interact with the parameters of the distribution and see how the distribution changes.
There are two HTML files:
distributionTable.html: Lists all known distributions in a table, giving links for interaction with eachdistributionDisplay.html: Gives an interface to interface with a specific distribution
distributionDisplay.html can be used directly using URL parameters, e.g.:
The setup parameters used here are:
dist: the distribution nameptzn: the parametrization number (array index; here 2 means mean/standard deviation)plotxrng: the lower and upper limit of the x axisrangesLo: the lower bound for the slider for each parameterrangesHi: the upper bound for the slider for each parameterstarts: starting values for the parameter sliders
How it works
The javascript file distributionList.js defines an array of distribution objects, each of which represents a probability distribution.
Distibutions
A distribution is defined by a distribution object, e.g.
distributions["normal"] = new distribution(
"normal", // label
"Normal/Gaussian", // display name
"continuous", // type
[ normalMeanVariance, normalMeanPrecision ], // array of parametrizations
null, // note
{ // information source about the distribution
name:"Wikipedia",
link:"http://en.wikipedia.org/wiki/Normal_distribution"
}
);
New distributions can be defined analgously.
Parametrizations
Every distribution must have at least one parametrization. Most of the important information about the distribution is in the parametrization object. See the distributionObjects.js file for more details, and the distributionList.js file for examples.
Libraries used
Uses the following libraries:
- For plotting: jquery, jquery-ui, and flot.js
- For the formula display: MathJax
- For the statistical functions: jstat
- For the lightbox: mootools and milkbox
Old (known working) versions of these libraries are included in this repository.
관련 프로젝트 살펴보기
불러오는 중…