pub struct CrateActivityCli { /* private fields */ }Expand description
Crate Activity Analyzer
Implementations§
Source§impl CrateActivityCli
impl CrateActivityCli
pub fn ignore_cache(&self) -> &bool
Sourcepub fn all(&self) -> &bool
pub fn all(&self) -> &bool
Enable all analyses: correlations, PCA, hierarchical clustering, network analysis, etc.
Sourcepub fn show_correlations(&self) -> &bool
pub fn show_correlations(&self) -> &bool
Toggle to enable or disable correlation analysis
Sourcepub fn perform_pca(&self) -> &bool
pub fn perform_pca(&self) -> &bool
Toggle to enable or disable PCA analysis
Sourcepub fn perform_hierarchical_clustering(&self) -> &bool
pub fn perform_hierarchical_clustering(&self) -> &bool
Toggle to enable hierarchical clustering
Sourcepub fn correlation_network(&self) -> &bool
pub fn correlation_network(&self) -> &bool
Toggle to enable correlation network analysis
Sourcepub fn network_threshold(&self) -> &f64
pub fn network_threshold(&self) -> &f64
Threshold for including edges in the correlation network graph
Sourcepub fn girvan_newman(&self) -> &Option<usize>
pub fn girvan_newman(&self) -> &Option<usize>
Use Girvan–Newman algorithm to find a specified number of communities
Sourcepub fn compute_betweenness(&self) -> &bool
pub fn compute_betweenness(&self) -> &bool
Compute betweenness centrality for nodes (and edges) and display top nodes
Sourcepub fn print_summary(&self) -> &bool
pub fn print_summary(&self) -> &bool
Print a summary of the network graph
Sourcepub fn time_lag_correlations(&self) -> &bool
pub fn time_lag_correlations(&self) -> &bool
Toggle to enable time-lagged correlation analysis
Sourcepub fn outlier_z_threshold(&self) -> &f64
pub fn outlier_z_threshold(&self) -> &f64
Z-score threshold for outlier detection (MAD-based)
Sourcepub fn downweight_outliers(&self) -> &bool
pub fn downweight_outliers(&self) -> &bool
Downweight outliers instead of removing them
Sourcepub fn outlier_weight(&self) -> &f64
pub fn outlier_weight(&self) -> &f64
Factor by which to downweight outliers if –downweight-outliers is used
pub fn expand_groups(&self) -> &bool
pub fn min_group_size(&self) -> &usize
pub fn verbose(&self) -> &bool
Source§impl CrateActivityCli
impl CrateActivityCli
pub fn read_command_line() -> Self
pub fn disable_outlier_handling(&self) -> bool
Sourcepub fn apply_all_flag(&mut self)
pub fn apply_all_flag(&mut self)
Apply the --all flag overrides if set.
Trait Implementations§
Source§impl Debug for CrateActivityCli
impl Debug for CrateActivityCli
Source§impl StructOpt for CrateActivityCli
impl StructOpt for CrateActivityCli
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Vec of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for CrateActivityCli
impl RefUnwindSafe for CrateActivityCli
impl Send for CrateActivityCli
impl Sync for CrateActivityCli
impl Unpin for CrateActivityCli
impl UnwindSafe for CrateActivityCli
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.