VarianceNumberProperty¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/axon/blob/main/js/VarianceNumberProperty.ts for the most up-to-date information.
Overview¶
A Property in which the output can be variable depending on a provided function. Statistical variation is quite helpful in PhET sims to convey "real world" settings.
@author Michael Kauzmann (PhET Interactive Simulations)
Class VarianceNumberProperty¶
Constructor¶
new VarianceNumberProperty( value : number, computeVariance : VarianceComputer, options? : VarianceNumberPropertyOptions )¶
Instance Methods¶
getRandomizedValue() : number¶
Instance Properties¶
computeVariance : VarianceComputer | null¶
(readonly)
Source Code¶
See the source for VarianceNumberProperty.ts in the axon repository.