Zafu/Testing/HedgeHog/Sizesource code:
Sizefrom_Int, golden, incBy, max, percentage, scale_Size, size_for_sample, to_IntSizeHedgeHog size parameter normalized to the closed interval 1..100.
type Size
from_IntWrap an integer into HedgeHog's normalized size domain.
def from_Int(value: Int) -> Size
goldenScale a size by HedgeHog's golden-ratio heuristic.
references: Size
def golden(size: Size) -> Size
incByAdd two sizes with HedgeHog's wraparound normalization.
references: Size
def incBy(size: Size, delta: Size) -> Size
maxreferences: Int
max: Int
percentageConvert a size to the [0, 1] percentage used for range scaling.
def percentage(size: Size) -> Float64
scale_SizeScale an integer by the normalized size ratio.
def scale_Size(size: Size, value: Int) -> Int
size_for_sampleCompute the sample size used for an index in a finite run.
def size_for_sample(index: Int, count: Int) -> Size
to_IntExtract the normalized integer backing a size.
def to_Int(size: Size) -> Int