

Returns the value of the probability density function at the given input domain value, for a log-normal distribution with specified log mean and log standard deviation stdev. If unspecified, the log mean defaults to 0 and the log standard deviation defaults to 1. Returns the value of the cumulative distribution function at the given input domain value for a log-normal distribution with specified log mean and log standard deviation stdev. Returns a sample from a univariate log-normal probability distribution with specified log mean and log standard deviation stdev. If unspecified, the mean defaults to 0 and the standard deviation defaults to 1. Returns the quantile value (the inverse of the cumulative distribution function) for the given input probability, for a normal distribution with specified mean and standard deviation stdev. Returns the value of the probability density function at the given input domain value, for a normal distribution with specified mean and standard deviation stdev. Returns the value of the cumulative distribution function at the given input domain value for a normal distribution with specified mean and standard deviation stdev. Returns a sample from a univariate normal (Gaussian) probability distribution with specified mean and standard deviation stdev. Methods for sampling and calculating values for probability distributions. This method is helpful in conjunction with setRandom to provide seeded random numbers for stable outputs and testing.
#GEN WEIGHTED STANDARD DEVIATION GENERATOR#
The returned function takes zero arguments and generates random values in the domain [0, 1) using a linear congruential generator (LCG). Returns a new random number generator with the given random seed. Setting a custom generator can be helpful if one wishes to use an alternative source of randomness or replace the default generator with a deterministic function for testing purposes. Subsequent calls to random will invoke the new function to generate random numbers. Sets the random number generator to the provided function randfunc. All Vega routines that require random numbers should use this function. By default this is simply a call to JavaScript’s built-in Math.random function. Returns a uniform pseudo-random number in the domain [0, 1). These methods are bound to the top-level vega object, and can also be used in a stand-alone fashion by using the vega-statistics project. Vega includes statistics functions for to model probability distributions and perform other statistical calculations.
