Documentation ¶
Index ¶
- Constants
- func ConvertSystem(system string) int
- type GeneralParameterSet
- func (p *GeneralParameterSet) GetGenNBW2ValueAbsent() int
- func (p *GeneralParameterSet) GetGenNBW2ValueBye() int
- func (p *GeneralParameterSet) GetNumberOfCategories() int
- func (p *GeneralParameterSet) GetNumberOfRounds() int
- func (p *GeneralParameterSet) InitSwiss()
- func (p *GeneralParameterSet) SetNumberOfRounds(roundNumber int)
- type HandicapParameterSet
- type PairingParameterSet
- func (p *PairingParameterSet) GetPaiBaAvoidDuplGame() int64
- func (p *PairingParameterSet) GetPaiBaBalanceWB() int64
- func (p *PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem1() int
- func (p *PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem2() int
- func (p *PairingParameterSet) GetPaiMaDUDDLowerMode() int
- func (p *PairingParameterSet) GetPaiMaDUDDUpperMode() int
- func (p *PairingParameterSet) GetPaiMaDUDDWeight() int64
- func (p *PairingParameterSet) GetPaiMaLastRoundForSeedSystem1() int
- func (p *PairingParameterSet) GetPaiMaMaximizeSeeding() int64
- func (p *PairingParameterSet) GetPaiMaMinimizeScoreDifference() int64
- func (p *PairingParameterSet) GetPaiMaSeedSystem1() int
- func (p *PairingParameterSet) GetPaiMaSeedSystem2() int
- func (p *PairingParameterSet) GetPaiStandardNX1Factor() float64
- func (p *PairingParameterSet) InitForSwiss()
- func (p *PairingParameterSet) IsPaiBaDeterministic() bool
- func (p *PairingParameterSet) IsPaiMaCompensateDUDD() bool
- type PlacementParameterSet
- type TournamentParameterSet
- func (t *TournamentParameterSet) GetGeneralParameterSet() *GeneralParameterSet
- func (t *TournamentParameterSet) GetHandicapParameterSet() *HandicapParameterSet
- func (t *TournamentParameterSet) GetPairingParameterSet() *PairingParameterSet
- func (t *TournamentParameterSet) GetPlacementParameterSet() *PlacementParameterSet
- func (t *TournamentParameterSet) InitForSwiss()
- func (t *TournamentParameterSet) SetGeneralParameterSet(set *GeneralParameterSet)
Constants ¶
View Source
const ( PAIBA_MAX_AVOIDDUPLGAME = 5 * 1e14 // 5 * 10^14 PAIBA_MAX_BALANCEWB = 1e6 PAIMA_MAX_MINIMIZE_SCORE_DIFFERENCE = 1e11 PAIMA_MAX_MAXIMIZE_SEEDING = PAIMA_MAX_MINIMIZE_SCORE_DIFFERENCE / 20000 PAIMA_MAX_DUDD_WEIGHT = PAIMA_MAX_MINIMIZE_SCORE_DIFFERENCE / 1000 PAIMA_SEED_SPLITANDRANDOM = 1 PAIMA_SEED_SPLITANDFOLD = 2 PAIMA_SEED_SPLITANDSLIP = 3 // 上下调的模式 PAIMA_DUDD_TOP = 1 PAIMA_DUDD_MID = 2 PAIMA_DUDD_BOT )
View Source
const ( PLA_CRIT_NUL = 0 // Null criterion PLA_MAX_NUMBER_OF_CRITERIA = 6 // 最大的规则数量 PLA_CRIT_NBW = 100 // Number of Wins (swiss) PLA_CRIT_SOSW = 110 // Sum of Opponents NbW PLA_CRIT_SOSOSW = 130 // Sum of opponents SOS PLA_CRIT_RATING = 12 // Rating )
View Source
const ( TYPE_UNDEFINED = 0 TYPE_MCMAHON = 1 TYPE_SWISS = 2 TYPE_SWISSCAT = 3 )
Variables ¶
This section is empty.
Functions ¶
func ConvertSystem ¶
Types ¶
type GeneralParameterSet ¶
type GeneralParameterSet struct {
// contains filtered or unexported fields
}
通用配置参数
func NewGeneralParameterSet ¶
func NewGeneralParameterSet() *GeneralParameterSet
func (*GeneralParameterSet) GetGenNBW2ValueAbsent ¶
func (p *GeneralParameterSet) GetGenNBW2ValueAbsent() int
func (*GeneralParameterSet) GetGenNBW2ValueBye ¶
func (p *GeneralParameterSet) GetGenNBW2ValueBye() int
func (*GeneralParameterSet) GetNumberOfCategories ¶
func (p *GeneralParameterSet) GetNumberOfCategories() int
func (*GeneralParameterSet) GetNumberOfRounds ¶
func (p *GeneralParameterSet) GetNumberOfRounds() int
func (*GeneralParameterSet) InitSwiss ¶
func (p *GeneralParameterSet) InitSwiss()
func (*GeneralParameterSet) SetNumberOfRounds ¶
func (p *GeneralParameterSet) SetNumberOfRounds(roundNumber int)
type HandicapParameterSet ¶
type HandicapParameterSet struct {
// contains filtered or unexported fields
}
func NewHandicapParameterSet ¶
func NewHandicapParameterSet() *HandicapParameterSet
func (*HandicapParameterSet) GetHdCeiling ¶
func (set *HandicapParameterSet) GetHdCeiling() int
func (*HandicapParameterSet) GetHdCorrection ¶
func (set *HandicapParameterSet) GetHdCorrection() int
func (*HandicapParameterSet) GetHdNoHdRankThreshold ¶
func (set *HandicapParameterSet) GetHdNoHdRankThreshold() int
func (*HandicapParameterSet) InitForSwiss ¶
func (set *HandicapParameterSet) InitForSwiss()
type PairingParameterSet ¶
type PairingParameterSet struct {
// contains filtered or unexported fields
}
匹配参数
func NewPairingParameterSet ¶
func NewPairingParameterSet() *PairingParameterSet
func (*PairingParameterSet) GetPaiBaAvoidDuplGame ¶
func (p *PairingParameterSet) GetPaiBaAvoidDuplGame() int64
func (*PairingParameterSet) GetPaiBaBalanceWB ¶
func (p *PairingParameterSet) GetPaiBaBalanceWB() int64
func (*PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem1 ¶
func (p *PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem1() int
func (*PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem2 ¶
func (p *PairingParameterSet) GetPaiMaAdditionalPlacementCritSystem2() int
func (*PairingParameterSet) GetPaiMaDUDDLowerMode ¶
func (p *PairingParameterSet) GetPaiMaDUDDLowerMode() int
func (*PairingParameterSet) GetPaiMaDUDDUpperMode ¶
func (p *PairingParameterSet) GetPaiMaDUDDUpperMode() int
func (*PairingParameterSet) GetPaiMaDUDDWeight ¶
func (p *PairingParameterSet) GetPaiMaDUDDWeight() int64
func (*PairingParameterSet) GetPaiMaLastRoundForSeedSystem1 ¶
func (p *PairingParameterSet) GetPaiMaLastRoundForSeedSystem1() int
func (*PairingParameterSet) GetPaiMaMaximizeSeeding ¶
func (p *PairingParameterSet) GetPaiMaMaximizeSeeding() int64
func (*PairingParameterSet) GetPaiMaMinimizeScoreDifference ¶
func (p *PairingParameterSet) GetPaiMaMinimizeScoreDifference() int64
func (*PairingParameterSet) GetPaiMaSeedSystem1 ¶
func (p *PairingParameterSet) GetPaiMaSeedSystem1() int
func (*PairingParameterSet) GetPaiMaSeedSystem2 ¶
func (p *PairingParameterSet) GetPaiMaSeedSystem2() int
func (*PairingParameterSet) GetPaiStandardNX1Factor ¶
func (p *PairingParameterSet) GetPaiStandardNX1Factor() float64
func (*PairingParameterSet) InitForSwiss ¶
func (p *PairingParameterSet) InitForSwiss()
func (*PairingParameterSet) IsPaiBaDeterministic ¶
func (p *PairingParameterSet) IsPaiBaDeterministic() bool
func (*PairingParameterSet) IsPaiMaCompensateDUDD ¶
func (p *PairingParameterSet) IsPaiMaCompensateDUDD() bool
type PlacementParameterSet ¶
type PlacementParameterSet struct {
// contains filtered or unexported fields
}
人员配置参数
func NewPlacementParameterSet ¶
func NewPlacementParameterSet() *PlacementParameterSet
func (*PlacementParameterSet) GetPlaCriteria ¶
func (set *PlacementParameterSet) GetPlaCriteria() []int
func (*PlacementParameterSet) InitForSwiss ¶
func (set *PlacementParameterSet) InitForSwiss()
初始swiss规则
func (*PlacementParameterSet) MainCriterion ¶
func (set *PlacementParameterSet) MainCriterion() int
type TournamentParameterSet ¶
type TournamentParameterSet struct {
// contains filtered or unexported fields
}
func NewTournamentParameterSet ¶
func NewTournamentParameterSet() *TournamentParameterSet
func (*TournamentParameterSet) GetGeneralParameterSet ¶
func (t *TournamentParameterSet) GetGeneralParameterSet() *GeneralParameterSet
func (*TournamentParameterSet) GetHandicapParameterSet ¶
func (t *TournamentParameterSet) GetHandicapParameterSet() *HandicapParameterSet
func (*TournamentParameterSet) GetPairingParameterSet ¶
func (t *TournamentParameterSet) GetPairingParameterSet() *PairingParameterSet
func (*TournamentParameterSet) GetPlacementParameterSet ¶
func (t *TournamentParameterSet) GetPlacementParameterSet() *PlacementParameterSet
func (*TournamentParameterSet) InitForSwiss ¶
func (t *TournamentParameterSet) InitForSwiss()
瑞士制编排初始化
func (*TournamentParameterSet) SetGeneralParameterSet ¶
func (t *TournamentParameterSet) SetGeneralParameterSet(set *GeneralParameterSet)
Click to show internal directories.
Click to hide internal directories.