na-error-propagation
Calculates the error propagation of an expression, also called Propagation of uncertainty.
Works in Node and the browser. Uses the nerdamer library to evaluate the expressions, including the differentials.
Example
var ErrorPropagation = ;var nerdamer = ;GLOBALnerdamer = nerdamer;;delete GLOBALnerdamer;ErrorPropagationnerdamer = nerdamer; var errorPropagation = correlation: 'both';errorPropagation;var result = errorPropagation;console; // {value: 23, error: {correlated: 10, uncorrelated: 5}}
If you want to use the events in the browser, you must set an EventEmitter library
using the ErrorPropagation.setEventEmitter(EventEmitter)
method.