NMath User's Guide

TOC | Previous | Next | Index

38.4 Min/Max Functions (.NET, C#, CSharp, VB, Visual Basic, F#)

Class StatsFunctions provides static min/max finding methods that return the integer index of the element in a data set that meets the appropriate criterion:

● MaxIndex() returns the index of the element with the greatest value.

● MinIndex() returns the index of the element with the smallest value.

● MaxAbsIndex() returns the index of the element with the greatest absolute value.

● MinAbsIndex() returns the index of the element with the smallest absolute value.

Min/max value methods MaxValue(), MinValue(), MaxAbsValue(), and MinAbsValue() return the value of the element that meets the appropriate criterion.


Top

Top