Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemandWheel ¶
type DemandWheel struct {
// contains filtered or unexported fields
}
func NewDemandWheel ¶
func NewDemandWheel(initSize int) *DemandWheel
func (*DemandWheel) GetLoad ¶
func (st *DemandWheel) GetLoad(elem int) int64
func (*DemandWheel) Remove ¶
func (st *DemandWheel) Remove(elem int)
func (*DemandWheel) Roll ¶
func (st *DemandWheel) Roll(roll float64) int
type StaticWheel ¶
type StaticWheel struct {
// contains filtered or unexported fields
}
func NewStaticWheel ¶
func NewStaticWheel(n int) *StaticWheel
func (*StaticWheel) Roll ¶
func (st *StaticWheel) Roll(roll float64) int
func (*StaticWheel) SetWeight ¶
func (st *StaticWheel) SetWeight(elem int, weight float64)
Click to show internal directories.
Click to hide internal directories.