SampleTransform Method

Transforms all values using a user-supplied function.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public void Transform(
	Func<double, double> transformFunction
)

Parameters

transformFunction  FuncDouble, Double
The function used to transform the values.

Remarks

For example, to replace all values with their logarithms, apply a transform using Log(Double).

If the supplied transform function throws an exception, or returns infinite or NaN values, the transformation may be incomplete or the data corrupted.

Exceptions

ArgumentNullExceptiontransformFunction is .

See Also