 | CondensedCollectionExtensionsMax Method (CondensedCollectionDouble) |
[This is preliminary documentation and is subject to change.]
Computes the maximum value of a sequence of double values. Optimized for a CondensedCollection.
Namespace:
Condensed.Linq
Assembly:
Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntaxpublic static double Max(
this CondensedCollection<double> source
)
<ExtensionAttribute>
Public Shared Function Max (
source As CondensedCollection(Of Double)
) As Double
public:
[ExtensionAttribute]
static double Max(
CondensedCollection<double>^ source
)
[<ExtensionAttribute>]
static member Max :
source : CondensedCollection<float> -> float
Parameters
- source
- Type: CondensedCondensedCollectionDouble
A CondensedCollection of double values to determine the maximum value of.
Return Value
Type:
DoubleThe maximum value of the sequence of values.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CondensedCollectionDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
Remarks
This implementation of Max() is specialized for a CondensedCollection and tries to
take advantage of the CondensedCollection's knowledge of unique values in order to improve performance.
If you would rather use the normal LINQ extension method then cast the CondensedCollection to an
IListT
to use the
Max(IEnumerableDouble) implementation.
See Also