[−][src]Struct preexplorer::data::Data
Generic multi-dimensional data.
Methods
impl<T> Data<T> where
T: Display,
[src]
T: Display,
pub fn new<I>(data: I, dim: usize) -> Self where
I: IntoIterator<Item = T>,
[src]
I: IntoIterator<Item = T>,
Create a new Data
.
The parameter dim
represents the dimension of the data.
Consecutive values are read as part of the same data point,
meaning that a set of data {x = (x_1, x_2, ..., x_d)}
should be given in an IntoIterator
that gives the values in
the following order: x_1, x_2, ..., x_d, y_1, y_2, ..., y_d, etc.
Trait Implementations
impl<T: Clone> Clone for Data<T> where
T: Display,
[src]
T: Display,
impl<T> Configurable for Data<T> where
T: Display,
[src]
T: Display,
fn configuration(&mut self) -> &mut Configuration
[src]
fn configuration_as_ref(&self) -> &Configuration
[src]
fn title<S: Display>(&mut self, title: S) -> &mut Self
[src]
fn logx<N: Into<f64>>(&mut self, logx: N) -> &mut Self
[src]
fn logy<N: Into<f64>>(&mut self, logy: N) -> &mut Self
[src]
fn xlog<N: Into<f64>>(&mut self, logx: N) -> &mut Self
[src]
fn ylog<N: Into<f64>>(&mut self, logy: N) -> &mut Self
[src]
fn labelx<S: Display>(&mut self, labelx: S) -> &mut Self
[src]
fn labely<S: Display>(&mut self, labely: S) -> &mut Self
[src]
fn xlabel<S: Display>(&mut self, labelx: S) -> &mut Self
[src]
fn ylabel<S: Display>(&mut self, labely: S) -> &mut Self
[src]
fn rangex<S, T>(&mut self, left: S, right: T) -> &mut Self where
f64: From<S>,
f64: From<T>,
[src]
f64: From<S>,
f64: From<T>,
fn rangey<S, T>(&mut self, down: S, up: T) -> &mut Self where
f64: From<S>,
f64: From<T>,
[src]
f64: From<S>,
f64: From<T>,
fn xrange<S, T>(&mut self, left: S, right: T) -> &mut Self where
f64: From<S>,
f64: From<T>,
[src]
f64: From<S>,
f64: From<T>,
fn yrange<S, T>(&mut self, down: S, up: T) -> &mut Self where
f64: From<S>,
f64: From<T>,
[src]
f64: From<S>,
f64: From<T>,
fn data_extension<S: AsRef<OsStr>>(&mut self, extension: S) -> &mut Self
[src]
fn plot_extension<S: AsRef<OsStr>>(&mut self, extension: S) -> &mut Self
[src]
fn header(&mut self, header: bool) -> &mut Self
[src]
fn style<S>(&mut self, style: S) -> &mut Self where
Style: From<S>,
[src]
Style: From<S>,
fn dashtype(&mut self, dashtype: usize) -> &mut Self
[src]
fn date(&mut self, date: DateTime<Local>) -> &mut Self
[src]
fn id<S: Display>(&mut self, id: S) -> &mut Self
[src]
fn custom<S: Display, T: Display>(&mut self, key: S, value: T) -> &mut Self
[src]
fn ticsx<T, S>(&mut self, ticsx: T) -> &mut Self where
T: Into<Option<S>>,
S: Display,
[src]
T: Into<Option<S>>,
S: Display,
fn ticsy<T, S>(&mut self, ticsy: T) -> &mut Self where
T: Into<Option<S>>,
S: Display,
[src]
T: Into<Option<S>>,
S: Display,
fn xtics<T, S>(&mut self, ticsx: T) -> &mut Self where
T: Into<Option<S>>,
S: Display,
[src]
T: Into<Option<S>>,
S: Display,
fn ytics<T, S>(&mut self, ticsy: T) -> &mut Self where
T: Into<Option<S>>,
S: Display,
[src]
T: Into<Option<S>>,
S: Display,
fn pause<T, S>(&mut self, pause: T) -> &mut Self where
T: Into<Option<S>>,
f64: From<S>,
[src]
T: Into<Option<S>>,
f64: From<S>,
fn get_title(&self) -> Option<&String>
[src]
fn get_logx(&self) -> Option<f64>
[src]
fn get_logy(&self) -> Option<f64>
[src]
fn get_xlog(&self) -> Option<f64>
[src]
fn get_ylog(&self) -> Option<f64>
[src]
fn get_labelx(&self) -> Option<&String>
[src]
fn get_labely(&self) -> Option<&String>
[src]
fn get_xlabel(&self) -> Option<&String>
[src]
fn get_ylabel(&self) -> Option<&String>
[src]
fn get_rangex(&self) -> Option<(f64, f64)>
[src]
fn get_rangey(&self) -> Option<(f64, f64)>
[src]
fn get_xrange(&self) -> Option<(f64, f64)>
[src]
fn get_yrange(&self) -> Option<(f64, f64)>
[src]
fn get_plot_extension(&self) -> Option<&OsStr>
[src]
fn get_data_extension(&self) -> Option<&OsStr>
[src]
fn get_plot_path(&self) -> &Path
[src]
fn get_data_path(&self) -> &Path
[src]
fn get_header(&self) -> bool
[src]
fn get_style(&self) -> &Style
[src]
fn get_dashtype(&self) -> Option<usize>
[src]
fn get_date(&self) -> &DateTime<Local>
[src]
fn get_id(&self) -> Option<&String>
[src]
fn get_checked_id(&self) -> &String
[src]
fn get_custom<S: Display>(&self, key: S) -> Option<&String>
[src]
fn get_ticsx(&self) -> Option<&String>
[src]
fn get_xtics(&self) -> Option<&String>
[src]
fn get_ticsy(&self) -> Option<&String>
[src]
fn get_ytics(&self) -> Option<&String>
[src]
fn get_pause(&self) -> Option<f64>
[src]
impl<T: Debug> Debug for Data<T> where
T: Display,
[src]
T: Display,
impl<T: PartialEq> PartialEq<Data<T>> for Data<T> where
T: Display,
[src]
T: Display,
impl<T> Plotable for Data<T> where
T: Display + Clone,
[src]
T: Display + Clone,
fn plot<S: Display>(&mut self, id: S) -> Result<&mut Self, SavingError>
[src]
Call plot_later
and retunrs error, since generic data
should be plotted by hand interacting with gnuplot.
fn plot_script(&self) -> String
[src]
Basic plot script with the instructions to search for the perfect plot in internet.
fn plot_later<S: Display>(&mut self, id: S) -> Result<&mut Self, SavingError>
[src]
fn plot_with_script<S: Display, T: Display>(
&mut self,
id: S,
script: T
) -> Result<&mut Self, SavingError>
[src]
&mut self,
id: S,
script: T
) -> Result<&mut Self, SavingError>
fn write_plot_script<S: Display>(
&self,
gnuplot_script: S
) -> Result<&Self, SavingError>
[src]
&self,
gnuplot_script: S
) -> Result<&Self, SavingError>
fn opening_plot_script(&self) -> String
[src]
fn ending_plot_script(&self) -> String
[src]
impl<T> Saveable for Data<T> where
T: Display + Clone,
[src]
T: Display + Clone,
fn plotable_data(&self) -> String
[src]
fn save(&self) -> Result<&Self, SavingError>
[src]
fn save_with_id<S: Display>(&self, id: S) -> Result<&Self, SavingError>
[src]
impl<T> StructuralPartialEq for Data<T> where
T: Display,
[src]
T: Display,
Auto Trait Implementations
impl<T> RefUnwindSafe for Data<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Data<T> where
T: Send,
T: Send,
impl<T> Sync for Data<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Data<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Data<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,