Click or drag to resize
SampleTransform Method
Transforms all values using a user-supplied function.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public void Transform(
	Func<double, double> transformFunction
)

Parameters

transformFunction
Type: SystemFuncDouble, Double
The function used to transform the values.
Exceptions
ExceptionCondition
ArgumentNullExceptiontransformFunction is .
Remarks

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

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

See Also