3using System.Threading.Tasks;
66 public override Task
FromXml(XmlElement Definition)
71 this.kHalf = this.k / 2;
74 return base.FromXml(Definition);
89 return StatMath.
γ(this.kHalf, t * t / 2) * this.
c;
100 Output.Append(
"?0:");
102 Output.Append(
"*(t-");
104 Output.Append(
").^");
106 Output.Append(
".*exp(-(t-");
108 Output.Append(
").^2/2)");
Root node of a simulation model
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Chi(ISimulationNode Parent, Model Model)
Chi distribution
double t0
Time of start of distribution
override void ExportPdfBody(StringBuilder Output)
Exports the PDF function body.
override string LocalName
Local name of XML element defining contents of class.
override double GetCumulativeProbability(double t, int NrCycles)
The Cumulative Distribution Function (CDF) of the distribution, excluding intensity (Distribution....
Abstract base class for distributions
ISimulationNode Parent
Parent node in the simulation model.
Helps with parsing of commong data types.
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
Helps with common XML-related tasks.
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Contains Numerical Methods to compute mathematical functions needed for probabilistic computations.
static double Γ(double x)
Gamma function Γ(x), for real-valued arguments.
static double γ(double a, double x)
Incomplete gamma function γ(a,x)→Γ(a),x→∞
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...