Joutsen v0.5.0+12-g5dd5f7e
Static Public Member Functions | List of all members
Joutsen.Linq.EnumerableExtensions Class Reference

Extension methods for enumerables. More...

Static Public Member Functions

static double StandardDeviation< Type > (this SCG.IEnumerable< Type > collection, Func< Type, double > selector)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< int > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< uint > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< long > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< ulong > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< float > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static double StandardDeviation (this SCG.IEnumerable< double > collection)
 Calculates the standard deviation of the items in the collection. More...
 
static List< ItemType > AsList< ItemType > (this SCG.IEnumerable< ItemType > enumerable)
 Creates a list out of an enumerable. More...
 
static Map< KeyType, ValueType > AsMap< ItemType, KeyType, ValueType > (this SCG.IEnumerable< ItemType > enumerable, Func< ItemType, KeyType > keyProjection, Func< ItemType, ValueType > valueProjection)
 Creates a map out of an enumerable. More...
 
static Listable< ItemType > AsListable< ItemType > (this SCG.IEnumerable< ItemType > collection)
 Converts an IEnumerable to a Listable. More...
 
static Set< ItemType > AsSet< ItemType > (this SCG.IEnumerable< ItemType > set)
 Converts an ISet to a Set. More...
 
static Collection< ItemType > AsCollection< ItemType > (this SCG.IEnumerable< ItemType > collection)
 Creates a Collection out of an Icollection. More...
 

Detailed Description

Extension methods for enumerables.

Since
0.3.0

Member Function Documentation

◆ AsCollection< ItemType >()

static Collection< ItemType > Joutsen.Linq.EnumerableExtensions.AsCollection< ItemType > ( this SCG.IEnumerable< ItemType >  collection)
static

Creates a Collection out of an Icollection.

Parameters
collectionthe collection
Returns
the ICollection as a collection
Remarks
This method does not copy the elements of the collection but uses a thin wrapper. Therefore it should not be performance critical.

◆ AsList< ItemType >()

static List< ItemType > Joutsen.Linq.EnumerableExtensions.AsList< ItemType > ( this SCG.IEnumerable< ItemType >  enumerable)
static

Creates a list out of an enumerable.

Parameters
collectionthe collection of items
Since
0.4.0

◆ AsListable< ItemType >()

static Listable< ItemType > Joutsen.Linq.EnumerableExtensions.AsListable< ItemType > ( this SCG.IEnumerable< ItemType >  collection)
static

Converts an IEnumerable to a Listable.

Parameters
collectionthe IEnumerable
Returns
a Listable based on collection
Remarks
This method copies the elements of the IEnumerable to a new data structure. It is as performant as the ToList method in the System.Linq namespace.
Since
0.4.0

◆ AsMap< ItemType, KeyType, ValueType >()

static Map< KeyType, ValueType > Joutsen.Linq.EnumerableExtensions.AsMap< ItemType, KeyType, ValueType > ( this SCG.IEnumerable< ItemType >  enumerable,
Func< ItemType, KeyType >  keyProjection,
Func< ItemType, ValueType >  valueProjection 
)
static

Creates a map out of an enumerable.

Parameters
collectionthe collection of items
keyProjectiona function that determines the keys of the resulting map
valueProjectiona function that determines the values of the resulting map
Since
0.4.0

◆ AsSet< ItemType >()

static Set< ItemType > Joutsen.Linq.EnumerableExtensions.AsSet< ItemType > ( this SCG.IEnumerable< ItemType >  set)
static

Converts an ISet to a Set.

Parameters
setthe ISet
Returns
a Set based on the ISet
Remarks
This method does not copy the elements of the ISet but uses a thin wrapper. Therefore it should not be performance critical.

◆ StandardDeviation() [1/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< double >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation() [2/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< float >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation() [3/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< int >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation() [4/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< long >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation() [5/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< uint >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation() [6/6]

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation ( this SCG.IEnumerable< ulong >  collection)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
Since
0.4.0

◆ StandardDeviation< Type >()

static double Joutsen.Linq.EnumerableExtensions.StandardDeviation< Type > ( this SCG.IEnumerable< Type >  collection,
Func< Type, double >  selector 
)
static

Calculates the standard deviation of the items in the collection.

Parameters
collectionthe collection of items
selectora function maps the item to double value used in the calculation
Since
0.4.0