38 get {
return new string[] {
"stddev" }; }
63 int i, c = Values.Length;
68 for (i = 0; i < c; i++)
70 d = (Values[i] - Avg);
76 return Math.Sqrt(Result);
101 int i, c = Values.Length;
106 for (i = 0; i < c; i++)
108 d = (Values[i] - Avg);
114 return Complex.Sqrt(Result);
Script runtime exception.
Class managing a script expression.
static double CalcAverage(double[] Values, ScriptNode Node)
Calculates the average of a set of double values.
StandardDeviation(v), StdDev(v)
override IElement EvaluateVector(IVector Argument, Variables Variables)
Evaluates the function on a vector argument.
static Complex CalcStandardDeviation(Complex[] Values, ScriptNode Node)
Calculates the standard deviation of a set of complex values.
static double CalcStandardDeviation(double[] Values, ScriptNode Node)
Calculates the standard deviation of a set of double values.
override string FunctionName
Name of the function
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.
StandardDeviation(ScriptNode Argument, int Start, int Length, Expression Expression)
StandardDeviation(v), StdDev(v)
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.