scenarios

package
v0.0.0-...-bc3f6f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcThreshold

func CalcThreshold(nodes int, t float64) int

CalcThreshold returns the number * t

func CalcThreshold100

func CalcThreshold100(nodes int) int

CalcThreshold100 returns the same number given

func CalcThreshold51

func CalcThreshold51(nodes int) int

CalcThreshold51 returns 51% of the number given

func CalcThreshold80

func CalcThreshold80(nodes int) int

CalcThreshold80 returns 80% of the number given

Types

type NodesInc

type NodesInc struct {
	// contains filtered or unexported fields
}

func NewNodeInc

func NewNodeInc(
	defaultConf lib.Config,
	handel *lib.HandelConfig,
	maxNodes,
	increment,
	failing int,
	calcThreshold func(int) int) NodesInc

func (NodesInc) Generate

func (n NodesInc) Generate(proc int, nodesCt []int) lib.Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL