Class StatisticalExpression
- Namespace
- xFunc.Maths.Expressions.Statistical
- Assembly
- xFunc.Maths.dll
Represent the Avg function.
public abstract class StatisticalExpression : DifferentParametersExpression, IExpression
- Inheritance
-
StatisticalExpression
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
StatisticalExpression(IEnumerable<IExpression>)
Initializes a new instance of the StatisticalExpression class.
protected StatisticalExpression(IEnumerable<IExpression> arguments)
Parameters
arguments
IEnumerable<IExpression>The arguments.
StatisticalExpression(ImmutableArray<IExpression>)
Initializes a new instance of the StatisticalExpression class.
protected StatisticalExpression(ImmutableArray<IExpression> arguments)
Parameters
arguments
ImmutableArray<IExpression>The arguments.
Properties
MaxParametersCount
Gets the maximum count of parameters. null
- Infinity.
public override int? MaxParametersCount { get; }
Property Value
- int?
The maximum count of parameters.
MinParametersCount
Gets the minimum count of parameters.
public override int? MinParametersCount { get; }
Property Value
- int?
The minimum count of parameters.
Methods
Execute(ExpressionParameters?)
Executes this expression.
public override object Execute(ExpressionParameters? parameters)
Parameters
parameters
ExpressionParametersAn object that contains all parameters and functions for expressions.
Returns
- object
A result of the execution.
Exceptions
- ExecutionException
The result of evaluation of arguments is not supported.
- See Also
ExecuteInternal(VectorValue)
Executes this expression.
protected abstract object ExecuteInternal(VectorValue vector)
Parameters
vector
VectorValueThe array of numbers.
Returns
- object
A result of the execution.