Documentation ¶
Index ¶
- type Axis
- type Fn
- type Generator
- func AlphaChar() Generator
- func AlphaLowerChar() Generator
- func AlphaNumChar() Generator
- func AlphaString() Generator
- func AlphaUpperChar() Generator
- func AnyString() Generator
- func Float32() Generator
- func Float32Range(min, max float32) Generator
- func Float64() Generator
- func Float64Range(min, max float64) Generator
- func Identifier() Generator
- func NumChar() Generator
- func NumString() Generator
- func Rune() Generator
- func RuneNoControl() Generator
- func RuneRange(min, max rune) Generator
- func UnicodeChar(table *unicode.RangeTable) Generator
- func UnicodeString(table *unicode.RangeTable) Generator
- type LnAxis
- type LnScaledAxis
- type Plot
- type ScaledAxis
- type StdAxix
- type Values
- type ValuesSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fn ¶
type Fn struct {
// contains filtered or unexported fields
}
A Fn is a plottable function that holds the function to plot, the input generators, and the inputs and outputs as scalars.
type Generator ¶
func AlphaLowerChar ¶
func AlphaLowerChar() Generator
func AlphaNumChar ¶
func AlphaNumChar() Generator
func AlphaString ¶
func AlphaString() Generator
func AlphaUpperChar ¶
func AlphaUpperChar() Generator
func Float32Range ¶
func Float64Range ¶
func Identifier ¶
func Identifier() Generator
func RuneNoControl ¶
func RuneNoControl() Generator
func UnicodeChar ¶
func UnicodeChar(table *unicode.RangeTable) Generator
func UnicodeString ¶
func UnicodeString(table *unicode.RangeTable) Generator
type LnScaledAxis ¶
type LnScaledAxis struct { Max float64 // contains filtered or unexported fields }
func (*LnScaledAxis) SetMaxValue ¶
func (lsa *LnScaledAxis) SetMaxValue(v *big.Float)
type ScaledAxis ¶
type ScaledAxis struct { Max float64 // contains filtered or unexported fields }
func (*ScaledAxis) SetMaxValue ¶
func (sa *ScaledAxis) SetMaxValue(v *big.Float)
type Values ¶
A Values is a collection of any type of value. A Values can be converted to a scalar value (a floating point number).
func (Values) Scalar ¶
Scalar converts a Values to an arbitrary precision floating point number. The scalar value conversion depends on the type of input value.
Individual values that are already scalar values (floats and ints) are returned as their original value.
Collections of values (slices, arrays, and maps) are unpacked into individual values. All individual values are converted to their binary representation and appended to a byte slice. When all values are appended to the byte buffer, the bytes are interpreted as a big-endian integer value.