Table of Contents

Class MinMaxUtil

Namespace
Hi.Common.MinMaxUtils
Assembly
HiGeom.dll

Provides utility methods for finding minimum and maximum values in collections.

public static class MinMaxUtil
Inheritance
MinMaxUtil
Inherited Members

Methods

GetMinMaxList(IList<KeyValuePair<double, double[]>>, int, int)

Creates a list of indexed minimum and maximum positions from a collection of key-value pairs where values are arrays.

public static List<IndexedMinMaxPos<double, double[]>> GetMinMaxList(this IList<KeyValuePair<double, double[]>> src, int numThreshold, int posValueLength)

Parameters

src IList<KeyValuePair<double, double[]>>

The source collection of key-value pairs

numThreshold int

The maximum number of positions to return

posValueLength int

The length of the value arrays

Returns

List<IndexedMinMaxPos<double, double[]>>

A list of indexed minimum and maximum positions

GetMinMaxList(IList<KeyValuePair<double, double>>, int)

Creates a list of indexed minimum and maximum positions from a collection of key-value pairs.

public static List<IndexedMinMaxPos<double, double>> GetMinMaxList(this IList<KeyValuePair<double, double>> src, int numThreshold)

Parameters

src IList<KeyValuePair<double, double>>

The source collection of key-value pairs

numThreshold int

The maximum number of positions to return

Returns

List<IndexedMinMaxPos<double, double>>

A list of indexed minimum and maximum positions