javascript - Drawling normal distribution curve with mean and standard deviation in JS -


i have api when hit gives me mean , standard deviation. want generate mean distribution curve based on above 2 values. how can using javascript(d3.js). want curve generated different values of mean , sigma. mean fitting curve should generated irrespective of mean , sigma api.

there equations calculating normal distribution given mean , standard deviation. wikipedia page normal distribution shows density function, want.

so you'll want generate function based on mean , variance (standard deviation squared) returned api, generate points using function , chart them using d3.js.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -