ArrayOperations
Methods
internal static bool IsEvenlySpaced<T>(T[] array, int startIndex, int count, double epsilon, double spacing)
result = ArrayOperations.IsEvenlySpaced(array, startIndex, count, epsilon, spacing)
Fast generic computation of whether an array is evenly spaced
internal static bool IsEvenlySpaced<T>(IList<T> items, int startIndex, int count, double epsilon, double spacing)
result = ArrayOperations.IsEvenlySpaced(items, startIndex, count, epsilon, spacing)
Fast generic computation of whether an array is evenly spaced
internal static bool IsSortedAscending<T>(T[] array, int startIndex, int count)
result = ArrayOperations.IsSortedAscending(array, startIndex, count)
Fast generic computation of whether an array is sorted
internal static bool IsSortedAscending<T>(IList<T> items, int startIndex, int count)
result = ArrayOperations.IsSortedAscending(items, startIndex, count)
Fast generic computation of whether a list is sorted
internal static T Maximum<T>(IEnumerable<T> enumerable)
result = ArrayOperations.Maximum(enumerable)
Returns: T.MinValue if there are no elements in input. This is required for joining ranges of dataseries
internal static T Maximum<T>(T[] array, int startIndex, int count)
result = ArrayOperations.Maximum(array, startIndex, count)
Returns: T.MinValue if there are no elements in input. This is required for joining ranges of dataseries
internal static T Minimum<T>(IEnumerable<T> enumerable)
result = ArrayOperations.Minimum(enumerable)
Returns: T.MaxValue if there are no elements in input. This is required for joining ranges of dataseries
internal static T Minimum<T>(T[] array, int startIndex, int count)
result = ArrayOperations.Minimum(array, startIndex, count)
Returns: T.MaxValue if there are no elements in input. This is required for joining ranges of dataseries
internal static T Minimum<T>(T[] array, int startIndex, int count, Func<T, T, T> minFunc)
result = ArrayOperations.Minimum(array, startIndex, count, minFunc)
Returns: T.MaxValue if there are no elements in input. This is required for joining ranges of dataseries
public static void MinMax<T>(IEnumerable<T> enumerable, T min, T max)
ArrayOperations.MinMax(enumerable, min, max)
Fast generic computation of the Min and Max of an enumerable
- enumerable
- The input enumerable.
- min
- T.MaxValue if there are no elements in input. This is required for joining ranges of dataseries
- max
- T.MinValue if there are no elements in input. This is required for joining ranges of dataseries
internal static void MinMax<T>(T[] array, int startIndex, int count, T min, T max)
ArrayOperations.MinMax(array, startIndex, count, min, max)
Fast generic computation of the Min and Max of an array
- array
- The input array.
- startIndex
- The start index.
- count
- The count.
- min
- T.MaxValue if there are no elements in input. This is required for joining ranges of dataseries
- max
- T.MinValue if there are no elements in input. This is required for joining ranges of dataseries