C# Class GoodAI.Modules.School.Common.LearningTaskHelpers

Show file Open project: GoodAI/BrainSimulator

Public Methods

Method Description
DeleteDirectory ( string target_dir ) : void
FlipCoin ( Random rndGen ) : bool
GetRandomGaussian ( Random rndGen ) : float
GetVisibleColor ( int colorIndex ) : Color
RandomVisibleColor ( Random rndGen, int numberOfColors = 11 ) : Color
RandomizeColor ( Color &color, Random rndGen ) : void
RandomizeColorWDiff ( Color backgroundColor, float minDifference, Random rndGen ) : Color
ResizeRectangleAroundCentre ( RectangleF r, float ratio ) : RectangleF
ResizeRectangleAroundCentre ( RectangleF r, float dx, float dy ) : RectangleF
UniqueNumbers ( Random rndGen, int lowerBound, int upperBound, int count ) : List

Method Details

DeleteDirectory() public static method

public static DeleteDirectory ( string target_dir ) : void
target_dir string
return void

FlipCoin() public static method

public static FlipCoin ( Random rndGen ) : bool
rndGen System.Random
return bool

GetRandomGaussian() public static method

public static GetRandomGaussian ( Random rndGen ) : float
rndGen System.Random
return float

GetVisibleColor() public static method

public static GetVisibleColor ( int colorIndex ) : Color
colorIndex int
return Color

RandomVisibleColor() public static method

public static RandomVisibleColor ( Random rndGen, int numberOfColors = 11 ) : Color
rndGen System.Random
numberOfColors int
return Color

RandomizeColor() public static method

public static RandomizeColor ( Color &color, Random rndGen ) : void
color Color
rndGen System.Random
return void

RandomizeColorWDiff() public static method

public static RandomizeColorWDiff ( Color backgroundColor, float minDifference, Random rndGen ) : Color
backgroundColor Color
minDifference float
rndGen System.Random
return Color

ResizeRectangleAroundCentre() public static method

public static ResizeRectangleAroundCentre ( RectangleF r, float ratio ) : RectangleF
r System.Drawing.RectangleF
ratio float
return System.Drawing.RectangleF

ResizeRectangleAroundCentre() public static method

public static ResizeRectangleAroundCentre ( RectangleF r, float dx, float dy ) : RectangleF
r System.Drawing.RectangleF
dx float
dy float
return System.Drawing.RectangleF

UniqueNumbers() public static method

public static UniqueNumbers ( Random rndGen, int lowerBound, int upperBound, int count ) : List
rndGen System.Random
lowerBound int
upperBound int
count int
return List