Trait renforce::util::Feature
[−]
[src]
pub trait Feature<S: Space, F: Float>: Debug { fn extract(&self, state: &S::Element) -> F; fn box_clone(&self) -> Box<Feature<S, F>>; }
A real-valued feature of elements of some state space
Required Methods
fn extract(&self, state: &S::Element) -> F
Extracts some real-valued feature from a given state
fn box_clone(&self) -> Box<Feature<S, F>>
Creates a cloned trait object of self
Implementors
impl<F: Float + Debug + 'static, S: Space, T> Feature<S, F> for IFeature<F, T> where T: Into<F> + Debug + Clone + 'static,
S::Element: Into<Vec<T>>impl<F: Float + Debug + 'static, S: Space + Clone + 'static> Feature<S, F> for RBFeature<F, S> where S::Element: Metric
impl<F: Float + Debug + 'static, S: Space + Clone + 'static> Feature<S, F> for BBFeature<F, S> where S::Element: Metric
impl<F: Float + Debug + 'static + 'static, S: Space, T> Feature<S, F> for BSFeature<F, T> where T: Into<F> + Debug + Clone + 'static,
S::Element: Into<Vec<T>>