Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NegativeExponential ¶
type NegativeExponential struct {
// contains filtered or unexported fields
}
NOTE: d(x) = a + b * exp(-steep * x)
func NewNegativeExponential ¶
func NewNegativeExponential(min, max, steep float64) (*NegativeExponential, error)
NOTE: Bigger steep leads to faster descent
func (*NegativeExponential) Calc ¶
func (ne *NegativeExponential) Calc(x float64) float64
func (*NegativeExponential) Invert ¶
func (ne *NegativeExponential) Invert(y float64) float64
Click to show internal directories.
Click to hide internal directories.