38 get {
return new string[] {
"var" }; }
63 int i, c = Values.Length;
65 for (i = 0; i < c; i++)
67 d = (Values[i] - Avg);
98 int i, c = Values.Length;
100 for (i = 0; i < c; i++)
102 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.
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.
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.