35 public override string[]
Aliases =>
new string[] {
"var" };
59 int i, c = Values.Length;
61 for (i = 0; i < c; i++)
63 d = (Values[i] - Avg);
94 int i, c = Values.Length;
96 for (i = 0; i < c; i++)
98 d = (Values[i] - Avg);
Script runtime exception.
Class managing a script expression.
static double CalcAverage(double[] Values, ScriptNode Node)
Calculates the average of a set of double values.
Variance(v) iterative evaluator
override string FunctionName
Name of the function
Variance(ScriptNode Argument, int Start, int Length, Expression Expression)
Variance(v), Var(v)
static Complex CalcVariance(Complex[] Values, ScriptNode Node)
Calculates the variance of a set of complex values.
static double CalcVariance(double[] Values, ScriptNode Node)
Calculates the variance of a set of double values.
override IElement EvaluateVector(IVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
override IElement EvaluateVector(DoubleVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override IElement EvaluateVector(ComplexVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override IIterativeEvaluator CreateEvaluator()
Creates an iterative evaluator for the node.
ScriptNode Argument
Function argument.
Base class for funcions of one vector variable.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
Basic interface for all types of elements.
Basic interface for vectors.
A function that can be iteratively evaluated, meaning it can be iteratively computed one element at a...
An interative evaluator of a function supporting the IIterativeEvaluation interface.