Show / Hide Table of Contents

Method Clamp

Clamp(int, int)

Composes a function that clamps, point-wise, this function's field result between two values.

Declaration
public DiscreteFieldFunction Clamp(int min, int max)
Parameters
Type Name Description
int min

The lower-bound value to clamp to.

int max

The upper-bound value to clamp to.

Returns
Type Description
DiscreteFieldFunction

A function that clamps, point-wise, this function's field result between two values.

Remarks

The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.

The function result has no data where this function's field result has no data.

The function result has no data where max is less than min.

The function result extent equals that of this function's field result.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1

Clamp(DiscreteFieldFunction, DiscreteFieldFunction)

Composes a function that clamps, point-wise, this function's field result between two values drawn from two others.

Declaration
public DiscreteFieldFunction Clamp(DiscreteFieldFunction minField, DiscreteFieldFunction maxField)
Parameters
Type Name Description
DiscreteFieldFunction minField

The discrete field function to draw lower-bound values from.

DiscreteFieldFunction maxField

The discrete field function to draw upper-bound values from.

Returns
Type Description
DiscreteFieldFunction

A function that clamps, point-wise, this function's field result between two values drawn from two others.

Remarks

The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.

The function result has no data where any of the fields have no data.

The function result has no data where the max is less than the min.

The function result extent equals the intersection of this field with the intersection of the min field and max field.

The spatial reference of all fields must be equivalent.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.