C# 클래스 Redzen.Numerics.DiscreteDistribution

Represents a distribution over a discrete set of possible states. Total probability over all states must add up to 1.0 This class was previously called RouletteWheelLayout.
파일 보기 프로젝트 열기: colgreen/Redzen 1 사용 예제들

공개 메소드들

메소드 설명
DiscreteDistribution ( DiscreteDistribution copyFrom ) : System

Copy constructor.

DiscreteDistribution ( double probArr ) : System

Construct the layout with provided probabilities. The provided probabilites do not have to add up to 1.0 as we implicitly normalise them when using the layout.

DiscreteDistribution ( double probArr, int labelArr ) : System

Construct the layout with provided probabilities. The provided probabilites do not have to add up to 1.0 as we implicitly normalise them when using the layout.

RemoveOutcome ( int labelId ) : DiscreteDistribution

Remove the specified outcome from the set of probabilities and return as a new DiscreteDistribution object.

비공개 메소드들

메소드 설명
NormaliseProbabilities ( double probs ) : void

메소드 상세

DiscreteDistribution() 공개 메소드

Copy constructor.
public DiscreteDistribution ( DiscreteDistribution copyFrom ) : System
copyFrom DiscreteDistribution
리턴 System

DiscreteDistribution() 공개 메소드

Construct the layout with provided probabilities. The provided probabilites do not have to add up to 1.0 as we implicitly normalise them when using the layout.
public DiscreteDistribution ( double probArr ) : System
probArr double
리턴 System

DiscreteDistribution() 공개 메소드

Construct the layout with provided probabilities. The provided probabilites do not have to add up to 1.0 as we implicitly normalise them when using the layout.
public DiscreteDistribution ( double probArr, int labelArr ) : System
probArr double
labelArr int
리턴 System

RemoveOutcome() 공개 메소드

Remove the specified outcome from the set of probabilities and return as a new DiscreteDistribution object.
public RemoveOutcome ( int labelId ) : DiscreteDistribution
labelId int
리턴 DiscreteDistribution