Skip to main content

IntervalFunction

Trait IntervalFunction 

Source
pub trait IntervalFunction<T> {
    // Required methods
    fn eval(&self, t: T) -> T;
    fn eval_interval(&self, t: Interval<T>) -> Interval<T>;
    fn eval_interval_gradient(&self, t: Interval<T>) -> Interval<T>;
}
Expand description

A derivable valued function which can be bounded on intervals.

Required Methods§

Source

fn eval(&self, t: T) -> T

Evaluate the function at t.

Source

fn eval_interval(&self, t: Interval<T>) -> Interval<T>

Bounds all the values of this function on the interval t.

Source

fn eval_interval_gradient(&self, t: Interval<T>) -> Interval<T>

Bounds all the values of the gradient of this function on the interval t.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§