pub trait RealNumber: Float + FromPrimitive + Debug + Display + Copy + Sum + Product + AddAssign + SubAssign + MulAssign + DivAssign {
fn copysign(self, sign: Self) -> Self;
fn ln_1pe(self) -> Self;
fn sigmoid(self) -> Self;
fn rand() -> Self;
fn two() -> Self;
fn half() -> Self;
fn to_f32_bits(self) -> u32;
fn square(self) -> Self { ... }
}
Expand description
Defines real number
Required Methods
Efficient implementation of Sigmoid function, \( S(x) = \frac{1}{1 + e^{-x}} \), see Sigmoid function
fn to_f32_bits(self) -> u32
fn to_f32_bits(self) -> u32
Raw transmutation to u64