Class Count
- Namespace
- xFunc.Maths.Expressions.Statistical
- Assembly
- xFunc.Maths.dll
Represent the Count function.
public class Count : StatisticalExpression, IExpression
- Inheritance
-
Count
- Implements
- Inherited Members
- Extension Methods
Constructors
Count(IEnumerable<IExpression>)
Initializes a new instance of the Count class.
public Count(IEnumerable<IExpression> arguments)
Parameters
arguments
IEnumerable<IExpression>The arguments.
Count(ImmutableArray<IExpression>)
Initializes a new instance of the Count class.
public Count(ImmutableArray<IExpression> arguments)
Parameters
arguments
ImmutableArray<IExpression>The arguments.
Methods
AnalyzeInternal<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
protected override TResult AnalyzeInternal<TResult>(IAnalyzer<TResult> analyzer)
Parameters
analyzer
IAnalyzer<TResult>The analyzer.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
protected override TResult AnalyzeInternal<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)
Parameters
analyzer
IAnalyzer<TResult, TContext>The analyzer.
context
TContextThe context.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
TContext
The type of additional parameter for analyzer.
Clone(ImmutableArray<IExpression>?)
Clones this instance of the IExpression.
public override IExpression Clone(ImmutableArray<IExpression>? arguments = null)
Parameters
arguments
ImmutableArray<IExpression>?The list of arguments.
Returns
- IExpression
Returns the new instance of IExpression that is a clone of this instance.
ExecuteInternal(VectorValue)
Executes this expression.
protected override object ExecuteInternal(VectorValue vector)
Parameters
vector
VectorValueThe array of numbers.
Returns
- object
A result of the execution.