Struct light_curve_feature::DataSample
source · pub struct DataSample<'a, T>where
T: Float,{
pub sample: CowArray<'a, T, Ix1>,
/* private fields */
}
Expand description
A TimeSeries
component
Fields§
§sample: CowArray<'a, T, Ix1>
Implementations§
source§impl<'a, T> DataSample<'a, T>where
T: Float,
impl<'a, T> DataSample<'a, T>where
T: Float,
pub fn new(sample: CowArray<'a, T, Ix1>) -> Self
pub fn as_slice(&mut self) -> &[T]
pub fn get_sorted(&mut self) -> &SortedArray<T>
pub fn get_min(&mut self) -> T
pub fn get_max(&mut self) -> T
pub fn get_mean(&mut self) -> T
pub fn get_median(&mut self) -> T
pub fn get_std(&mut self) -> T
pub fn get_std2(&mut self) -> T
pub fn signal_to_noise(&mut self, value: T) -> T
Trait Implementations§
source§impl<'a, T> Clone for DataSample<'a, T>
impl<'a, T> Clone for DataSample<'a, T>
source§fn clone(&self) -> DataSample<'a, T>
fn clone(&self) -> DataSample<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, T> Debug for DataSample<'a, T>
impl<'a, T> Debug for DataSample<'a, T>
source§impl<'a, T, Slice> From<&'a Slice> for DataSample<'a, T>
impl<'a, T, Slice> From<&'a Slice> for DataSample<'a, T>
source§impl<'a, T> From<ArrayBase<CowRepr<'a, T>, Dim<[usize; 1]>>> for DataSample<'a, T>where
T: Float,
impl<'a, T> From<ArrayBase<CowRepr<'a, T>, Dim<[usize; 1]>>> for DataSample<'a, T>where
T: Float,
source§impl<'a, T> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 1]>>> for DataSample<'a, T>where
T: Float,
impl<'a, T> From<ArrayBase<OwnedRepr<T>, Dim<[usize; 1]>>> for DataSample<'a, T>where
T: Float,
Auto Trait Implementations§
impl<'a, T> Freeze for DataSample<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for DataSample<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DataSample<'a, T>
impl<'a, T> Sync for DataSample<'a, T>
impl<'a, T> Unpin for DataSample<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for DataSample<'a, T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more