2using System.Collections.Generic;
3using System.Security.Cryptography;
57 get {
return new string[] {
"median",
"scale",
"N" }; }
81 int N = (int)Math.Round(d);
85 double[] v =
new double[N];
88 for (i = 0; i < N; i++)
104 throw new ArgumentOutOfRangeException(
"Must be positive.", nameof(Scale));
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 cauchy distribution.
override string FunctionName
Name of the function
Cauchy(ScriptNode Shape, ScriptNode Scale, int Start, int Length, Expression Expression)
Generates a random number using the cauchy distribution.
override string[] DefaultArgumentNames
Default Argument names
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
Cauchy(ScriptNode Shape, ScriptNode Scale, ScriptNode N, int Start, int Length, Expression Expression)
Generates a random number using the cauchy distribution.
static double NextDouble(double Median, double Scale)
Gets a cauchy distributed random value.
Basic interface for all types of elements.
ArgumentType
Type of parameter used in a function definition or a lambda definition.