2using System.Collections.Generic;
3using System.Security.Cryptography;
55 get {
return new string[] {
"degrees",
"N" }; }
77 int N = (int)Math.Round(d);
81 double[] v =
new double[N];
84 for (i = 0; i < N; i++)
99 throw new ArgumentOutOfRangeException(
"Must be positive.", nameof(Degrees));
Script runtime exception.
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Generates a random number using the chi squared distribution.
static double NextDouble(double Degrees)
Gets a chi squared distributed random value.
Generates a random number using the normal distribution.
static double NextDouble()
Gets a normally distributed random value. Distribution has a mean of 0 and standard deviation of 1.
Generates a random number using the student-T distribution.
StudentT(ScriptNode Degrees, int Start, int Length, Expression Expression)
Generates a random number using the student-T distribution.
StudentT(ScriptNode Degrees, ScriptNode N, int Start, int Length, Expression Expression)
Generates a random number using the student-T distribution.
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
static double NextDouble(double Degrees)
Gets a student-T distributed random value.
override string FunctionName
Name of the function
override string[] DefaultArgumentNames
Default Argument names
Basic interface for all types of elements.
ArgumentType
Type of parameter used in a function definition or a lambda definition.