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

Afficher le fichier Open project: GoodAI/BrainSimulator

Méthodes publiques

Méthode 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 méthode

public static DeleteDirectory ( string target_dir ) : void
target_dir string
Résultat void

FlipCoin() public static méthode

public static FlipCoin ( Random rndGen ) : bool
rndGen System.Random
Résultat bool

GetRandomGaussian() public static méthode

public static GetRandomGaussian ( Random rndGen ) : float
rndGen System.Random
Résultat float

GetVisibleColor() public static méthode

public static GetVisibleColor ( int colorIndex ) : Color
colorIndex int
Résultat Color

RandomVisibleColor() public static méthode

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

RandomizeColor() public static méthode

public static RandomizeColor ( Color &color, Random rndGen ) : void
color Color
rndGen System.Random
Résultat void

RandomizeColorWDiff() public static méthode

public static RandomizeColorWDiff ( Color backgroundColor, float minDifference, Random rndGen ) : Color
backgroundColor Color
minDifference float
rndGen System.Random
Résultat Color

ResizeRectangleAroundCentre() public static méthode

public static ResizeRectangleAroundCentre ( RectangleF r, float ratio ) : RectangleF
r System.Drawing.RectangleF
ratio float
Résultat System.Drawing.RectangleF

ResizeRectangleAroundCentre() public static méthode

public static ResizeRectangleAroundCentre ( RectangleF r, float dx, float dy ) : RectangleF
r System.Drawing.RectangleF
dx float
dy float
Résultat System.Drawing.RectangleF

UniqueNumbers() public static méthode

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