C# 클래스 GoodAI.Modules.School.Common.LearningTaskHelpers

파일 보기 프로젝트 열기: GoodAI/BrainSimulator

공개 메소드들

메소드 설명
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

메소드 상세

DeleteDirectory() 공개 정적인 메소드

public static DeleteDirectory ( string target_dir ) : void
target_dir string
리턴 void

FlipCoin() 공개 정적인 메소드

public static FlipCoin ( Random rndGen ) : bool
rndGen System.Random
리턴 bool

GetRandomGaussian() 공개 정적인 메소드

public static GetRandomGaussian ( Random rndGen ) : float
rndGen System.Random
리턴 float

GetVisibleColor() 공개 정적인 메소드

public static GetVisibleColor ( int colorIndex ) : Color
colorIndex int
리턴 Color

RandomVisibleColor() 공개 정적인 메소드

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

RandomizeColor() 공개 정적인 메소드

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

RandomizeColorWDiff() 공개 정적인 메소드

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

ResizeRectangleAroundCentre() 공개 정적인 메소드

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

ResizeRectangleAroundCentre() 공개 정적인 메소드

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

UniqueNumbers() 공개 정적인 메소드

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