Trait ActivationFunction

Source
pub trait ActivationFunction:
    Clone
    + Debug
    + Send
    + Sized
    + PartialEq
    + Eq {
    // Required methods
    fn formula_gnuplot(&self, x: String) -> String;
    fn name(&self) -> String;
    fn calculate(&self, x: f64) -> f64;
}

Required Methods§

Source

fn formula_gnuplot(&self, x: String) -> String

Source

fn name(&self) -> String

Source

fn calculate(&self, x: f64) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§