Table of Contents

Method Integral

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static decimal Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, decimal>

The selector that selects a value from the input document.

window SetWindowFieldsWindow

The window boundaries.

Returns

decimal

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, decimal>, WindowTimeUnit, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static decimal Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, decimal> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, decimal>

The selector that selects a value from the input document.

unit WindowTimeUnit

The unit for time based integrals.

window SetWindowFieldsWindow

The window boundaries.

Returns

decimal

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, double>

The selector that selects a value from the input document.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, double>, WindowTimeUnit, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, double> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, double>

The selector that selects a value from the input document.

unit WindowTimeUnit

The unit for time based integrals.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, float>

The selector that selects a value from the input document.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, float>, WindowTimeUnit, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, float> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, float>

The selector that selects a value from the input document.

unit WindowTimeUnit

The unit for time based integrals.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, int>

The selector that selects a value from the input document.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, int>, WindowTimeUnit, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, int> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, int>

The selector that selects a value from the input document.

unit WindowTimeUnit

The unit for time based integrals.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, long>

The selector that selects a value from the input document.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.

Integral<TInput>(ISetWindowFieldsPartition<TInput>, Func<TInput, long>, WindowTimeUnit, SetWindowFieldsWindow)

Returns the approximation of the area under a curve.

public static double Integral<TInput>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, long> selector, WindowTimeUnit unit, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

selector Func<TInput, long>

The selector that selects a value from the input document.

unit WindowTimeUnit

The unit for time based integrals.

window SetWindowFieldsWindow

The window boundaries.

Returns

double

The approximation of the area under a curve.

Type Parameters

TInput

The type of the input documents in the partition.