DataFlow.Clip Method

Definition

Clips values so that all values are between the lower and upper boundaries.

public Microsoft.DataPrep.Common.DataFlow Clip(Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector columns, Nullable<double> lower = null, Nullable<double> upper = null, bool useValues = true);
member this.Clip : Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector * Nullable<double> * Nullable<double> * bool -> Microsoft.DataPrep.Common.DataFlow
Public Function Clip (columns As ColumnsSelector, Optional lower As Nullable(Of Double) = null, Optional upper As Nullable(Of Double) = null, Optional useValues As Boolean = true) As DataFlow

Parameters

columns
Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector

The source columns.

lower
Nullable<Double>

All values lower than this value will be set to this value.

upper
Nullable<Double>

All values higher than this value will be set to this value.

useValues
Boolean

If true, values outside boundaries will be set to the boundary values. If false, those values will be set to null.

Returns

Applies to