[IoId("00000000-327c-40bd-b454-e329e7a12c79")] public sealed class AverageFunction : FunctionFG<Function, Function>
The average of two functions.

Constructors

AverageFunction

#
public AverageFunction()

AverageFunction

#
public AverageFunction(
reader
)

AverageFunction

#
public AverageFunction()

Properties

Derivative

Gets a function which is the derivative of this function. The returned function may be either analytic or approximate.
public sealed override Function Derivative { get; }
inherited fromFunctionWithCaching

F

First operand.
public T1 F { get; }
inherited fromFunctionF<T1>

G

Second operand.
public T2 G { get; }
inherited fromFunctionFG<T1, T2>

Integral

Gets a function which is the indefinite integral of this function. The returned function may be analytic or approximate. Note that numeric approximation of indefinite integrals is a slow and not particularly high quality process.
public sealed override Function Integral { get; }
inherited fromFunctionWithCaching

MeanKind

#
public Maths.MeanKind MeanKind { get; }

Nomen

Gets a description of this function.
public sealed override Nomen Nomen { get; }
inherited fromFunctionWithCaching
Function.Nomen

Notation

Gets the notation for this function. Notation is aimed at humans and does not need to return a parseable string.
public override string Notation { get; }
inherited fromFunctionWithCaching

Ui

#
public override FunctionUi Ui { get; }
Function.Ui

Methods

Asymptotes

Returns an array of *all* the non-vertical asymptotes for this function. This property may return both null and empty arrays, implying no asymptotes. Due to the nature of non-vertical asymptotes, there can only be a finite amount of them.
public virtual Line[] Asymptotes()
inherited fromFunction

AutoCoDomain

Compute the automatic codomain for a given domain.
protected void AutoCoDomain(
x0,
Domain start.
x1,
Domain end.
out double
y0,
Lowest value in codomain.
out double
y1,
Highest value in codomain.
samples = 100
Samples.
)
inherited fromFunction

DomainEstimate

public override void DomainEstimate(
out double
x0,
out double
x1,
out double
y0,
out double
y1
)
inherited fromFunctionFG<T1, T2>

EmitDerivative

Override this method to provide an analytic derivative.
protected virtual Function EmitDerivative()
inherited fromFunctionWithCaching

EmitIntegral

Override this method to provide an analytic indefinite integral.
protected virtual Function EmitIntegral()
inherited fromFunctionWithCaching

Holes

A binary operation is undefined wherever either operand is, and blows up wherever either operand does. Overridden because the unary base relays F alone, which would drop G's features silently.
public override Interval[] Holes()
inherited fromFunctionFG<T1, T2>

Integrate

Evaluate the definite integral between two parameters. Unless a function specifically implements an analytic integral, this value will be approximate. Note to implementer: if you provide an analytic integral via the Function.Integral property, that function will be used to compute an analytic result. There is typically no reason to override this method.
public virtual double Integrate(
x0,
Integral start.
x1
Integral end.
)
inherited fromFunction
Definite integral from x0 to x1.

Poles

A binary operation is undefined wherever either operand is, and blows up wherever either operand does. Overridden because the unary base relays F alone, which would drop G's features silently.
public override Pole[] Poles()
inherited fromFunctionFG<T1, T2>

Store

#
public override void Store(
writer
)

Y

#
public override double Y()
Function.Y

YYYY

Evaluate a large amount of values. Functions may choose to use multiple threads to perform this calculation. This method should not throw, instead every failed evaluation will be represented by a NaN value.
public double[] YYYY(
x
Value to evaluate.
)
inherited fromFunction
Evaluation results. Array will contain double.NaN entries for failed evaluations.