sigmoid

package
v0.0.0-...-a1867f6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sigmoid

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

Sigmoid is an auto-scaling auto-shifting sigmoid so that Value(0)=0 and Value(1)=1.

func NewSigmoid

func NewSigmoid() Sigmoid

NewSigmoid returns a new Sigmoid.

func (Sigmoid) Value

func (s Sigmoid) Value(x float64) float64

Value returns a value in the [0, 1] interval (assuming x is in [0, 1]).

Jump to

Keyboard shortcuts

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