Table of Contents

Class Avg

Namespace
xFunc.Maths.Expressions.Statistical
Assembly
xFunc.Maths.dll

Represent the Avg function.

public class Avg : StatisticalExpression, IExpression
Inheritance
Avg
Implements
Inherited Members
Extension Methods

Constructors

Avg(IEnumerable<IExpression>)

Initializes a new instance of the Avg class.

public Avg(IEnumerable<IExpression> arguments)

Parameters

arguments IEnumerable<IExpression>

The arguments.

Avg(ImmutableArray<IExpression>)

Initializes a new instance of the Avg class.

public Avg(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 TContext

The 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 VectorValue

The array of numbers.

Returns

object

A result of the execution.

See Also