Class Mean

Namespace
NOpenNLP.Tools.Util.Eval
Assembly
NOpenNLP.Tools.dll

Calculates the arithmetic mean of values added with the Add(double) method.

public class Mean
Inheritance
Mean
Inherited Members

Properties

Count

Retrieves the number of times a value was added to the mean.

public long Count { get; }

Property Value

long

Value

Retrieves the mean of all values added with Add(double) or 0 if there are zero added values.

public double Value { get; }

Property Value

double

Methods

Add(double)

Adds a value to the arithmetic mean.

public void Add(double value)

Parameters

value double

the value which should be added to the arithmetic mean.

Add(double, long)

Adds a value count times to the arithmetic mean.

public void Add(double value, long count)

Parameters

value double

the value which should be added to the arithmetic mean.

count long

number of times the value should be added to arithmetic mean.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.