[][src]Struct agnes::frame::Framed

pub struct Framed<T, DI> { /* fields omitted */ }

Structure to hold references to a data structure (e.g. DataStore) and a frame used to view that structure. Provides DataIndex for the underlying data structure, as viewed through the frame.

Methods

impl<T, DI> Framed<T, DI>[src]

pub fn new(permutation: Rc<Permutation<Vec<usize>>>, data: DI) -> Framed<T, DI>[src]

Create a new framed view of some data, as viewed through a particular DataFrame.

pub fn new_melt(
    permutation: Rc<Permutation<Vec<usize>>>,
    data: Vec<DI>
) -> Framed<T, DI>
[src]

Create a new framed view of some data, rotating over data in a Vec of DataIndex objects.

Trait Implementations

impl<T, DI> Typed for Framed<T, DI>[src]

type DType = T

Associated data type with this type.

impl<T, DI> SelfValued for Framed<T, DI>[src]

impl<T, DI> DataIndex for Framed<T, DI> where
    T: Debug,
    DI: DataIndex<DType = T> + Debug
[src]

type DType = T

The data type contained within this field.

fn is_empty(&self) -> bool[src]

Returns whether or not this field is empty.

Important traits for DataIterator<'a, T>
fn iter(&self) -> DataIterator<Self::DType> where
    Self: Sized
[src]

Returns an iterator over the values in this field.

fn permute(self, permutation: &[usize]) -> Framed<Self::DType, Self> where
    Self: Sized
[src]

Returns a new DataIndex-implementing object which provides access to the values in this field as permuted by permutation. permutation is a slice of indices into this DataIndex. Read more

fn to_vec(&self) -> Vec<Self::DType> where
    Self: Sized,
    Self::DType: Clone
[src]

Copies existing values in this field into a new Vec. Read more

fn to_value_vec(&self) -> Vec<Value<Self::DType>> where
    Self: Sized,
    Self::DType: Clone
[src]

Copies values (missing or existing) in this field into a new Vec.

impl<T, DI> HashIndex for Framed<T, DI> where
    Value<&'a T>: Hash,
    Self: DataIndex<DType = T>, 
[src]

impl<T, DI> PartialEqIndex for Framed<T, DI> where
    Value<&'a T>: PartialEq,
    Self: DataIndex<DType = T>, 
[src]

impl<T: Eq, DI: Eq> Eq for Framed<T, DI>[src]

impl<T: PartialEq, DI: PartialEq> PartialEq<Framed<T, DI>> for Framed<T, DI>[src]

impl<T, DI> Clone for Framed<T, DI> where
    DI: Clone
[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> From<DataRef<T>> for Framed<T, DataRef<T>>[src]

impl<T> From<FieldData<T>> for Framed<T, DataRef<T>>[src]

impl<T: Debug, DI: Debug> Debug for Framed<T, DI>[src]

impl<T: Hash, DI: Hash> Hash for Framed<T, DI>[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T, DI> Serialize for Framed<T, DI> where
    T: Serialize,
    Self: DataIndex<DType = T>, 
[src]

Auto Trait Implementations

impl<T, DI> !Send for Framed<T, DI>

impl<T, DI> !Sync for Framed<T, DI>

Blanket Implementations

impl<T> IntoLabeled for T[src]

impl<T> Valued for T where
    T: SelfValued
[src]

type Value = T

The associated value.

impl<T> HasLabels for T[src]

impl<Needle, Haystack> HasLabels for Haystack where
    Haystack: Member<Needle, IsMember = B1>,
    Needle: Label
[src]

impl<DI> NRows for DI where
    DI: DataIndex
[src]

impl<Frames, Store> JoinIntoStore for Frames[src]

type Output = Store

The output type after augmenting Store.

impl<DI> SortOrder for DI where
    DI: DataIndex,
    <DI as DataIndex>::DType: Ord
[src]

impl<DI> SortOrderUnstable for DI where
    DI: DataIndex,
    <DI as DataIndex>::DType: Ord
[src]

impl<DI, F> SortOrderComparator for DI where
    DI: DataIndex,
    F: FnMut(Value<&<DI as DataIndex>::DType>, Value<&<DI as DataIndex>::DType>) -> Ordering
[src]

impl<DI, F> SortOrderUnstableComparator for DI where
    DI: DataIndex,
    F: FnMut(Value<&<DI as DataIndex>::DType>, Value<&<DI as DataIndex>::DType>) -> Ordering
[src]

impl<DI, P> FilterPerm for DI where
    DI: DataIndex,
    P: FnMut(Value<&<DI as DataIndex>::DType>) -> bool
[src]

impl<DI> NaCount for DI where
    DI: DataIndex
[src]

impl<DI> Sum for DI where
    DI: DataIndex,
    <DI as DataIndex>::DType: Add<&'a <DI as DataIndex>::DType>,
    <DI as DataIndex>::DType: Zero,
    <<DI as DataIndex>::DType as Add<&'a <DI as DataIndex>::DType>>::Output == <DI as DataIndex>::DType
[src]

type Output = <DI as DataIndex>::DType

The data type of the sum result.

impl<DI> Mean for DI where
    DI: DataIndex + NaCount + Sum,
    <DI as Sum>::Output: AsPrimitive<f64>, 
[src]

impl<DI> SumSq for DI where
    DI: DataIndex,
    <DI as DataIndex>::DType: Add<&'a <DI as DataIndex>::DType>,
    <DI as DataIndex>::DType: Zero,
    &'a <DI as DataIndex>::DType: Mul<&'b <DI as DataIndex>::DType>,
    <<DI as DataIndex>::DType as Add<&'a <DI as DataIndex>::DType>>::Output == <DI as DataIndex>::DType,
    <&'a <DI as DataIndex>::DType as Mul<&'b <DI as DataIndex>::DType>>::Output == <DI as DataIndex>::DType
[src]

type Output = <DI as DataIndex>::DType

The data type of the sum result.

impl<DI> Variance for DI where
    DI: DataIndex + SumSq + NaCount + Mean,
    <DI as SumSq>::Output: AsPrimitive<f64>, 
[src]

fn stdev(&self) -> f64[src]

Computes sample standard deviation of this field. Ignores missing values in this computation. If all values are missing, returns 0.0. Read more

fn stdevp(&self) -> f64[src]

Computes population standard deviation of this field. Ignores missing values in this computation. If all values are missing, returns 0.0. Read more

impl<DI> Extrema for DI where
    DI: DataIndex,
    <DI as DataIndex>::DType: PartialOrd<<DI as DataIndex>::DType>, 
[src]

type Output = <DI as DataIndex>::DType

The data type of the upper and lower values.

impl<Frames> AssocDataIndexCons for Frames[src]

type Output = Nil

Type of associated data index cons-list.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T[src]

type Output = T

Should always be Self