Trait optimization::Summation1
[−]
[src]
pub trait Summation1: Summation + Function1 {
fn term_gradient(&self, position: &[f64], term: usize) -> Vec<f64>;
fn partial_gradient<T: IntoIterator<Item=I>, I: Borrow<usize>>(&self, position: &[f64], terms: T) -> Vec<f64> { ... }
}Defines a summation of individual functions fᵢ(x), assuming that each function has a first
derivative.
Required Methods
fn term_gradient(&self, position: &[f64], term: usize) -> Vec<f64>
Computes the gradient of one individual function identified by term at the given
position.
Provided Methods
fn partial_gradient<T: IntoIterator<Item=I>, I: Borrow<usize>>(&self, position: &[f64], terms: T) -> Vec<f64>
Computes the partial gradient over a set of terms at the given position.