MyMediaLite  3.11
Static Public Member Functions | List of all members
Utils Class Reference

Class containing utility functions More...

Static Public Member Functions

static IList< Type > GetTypes (string name_space)
 Get all types in a namespace More...
 
static Func< A, R > Memoize< A, R > (this Func< A, R > f)
 Memoize a function More...
 
static void Shuffle< T > (this IList< T > list)
 Shuffle a list in-place More...
 

Detailed Description

Class containing utility functions

Member Function Documentation

static IList<Type> GetTypes ( string  name_space)
inlinestatic

Get all types in a namespace

Parameters
name_spacea string describing the namespace
Returns
a list of Type objects
static Func<A, R> Memoize< A, R > ( this Func< A, R >  f)
inlinestatic

Memoize a function

Parameters
fThe function to memoize
Returns
a version of the function that remembers past function results
static void Shuffle< T > ( this IList< T >  list)
inlinestatic

Shuffle a list in-place

Fisher-Yates shuffle, see http://en.wikipedia.org/wiki/Fisher–Yates_shuffle


The documentation for this class was generated from the following file: