C# Class AIXI.Utils

Exibir arquivo Open project: GoodAI/SummerCamp

Public Properties

Property Type Description
Rnd System.Random

Public Methods

Method Description
BitsNeeded ( int value ) : int
Decode ( int symbolList, int bitCount ) : int
Encode ( int integerSymbol, int bitCount ) : int[]
FloatCompare ( double a, double b, double delta = 1e-5 ) : bool
Log1P ( double x ) : double
LogBase2 ( int value ) : int
MyToDouble ( string s ) : double
ProbabilisticDecision ( double limit ) : bool
RandomDouble ( double min, double max ) : double
RandomElement ( int a ) : int

Method Details

BitsNeeded() public static method

public static BitsNeeded ( int value ) : int
value int
return int

Decode() public static method

public static Decode ( int symbolList, int bitCount ) : int
symbolList int
bitCount int
return int

Encode() public static method

public static Encode ( int integerSymbol, int bitCount ) : int[]
integerSymbol int
bitCount int
return int[]

FloatCompare() public static method

public static FloatCompare ( double a, double b, double delta = 1e-5 ) : bool
a double
b double
delta double
return bool

Log1P() public static method

public static Log1P ( double x ) : double
x double
return double

LogBase2() public static method

public static LogBase2 ( int value ) : int
value int
return int

MyToDouble() public static method

public static MyToDouble ( string s ) : double
s string
return double

ProbabilisticDecision() public static method

public static ProbabilisticDecision ( double limit ) : bool
limit double
return bool

RandomDouble() public static method

public static RandomDouble ( double min, double max ) : double
min double
max double
return double

RandomElement() public static method

public static RandomElement ( int a ) : int
a int
return int

Property Details

Rnd public_oe static_oe property

public static Random,System Rnd
return System.Random