Skip to content

Commit

Permalink
clean up docs (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungg authored Aug 26, 2024
1 parent eee0e9c commit c4423f5
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 247 deletions.
32 changes: 16 additions & 16 deletions src/correlation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ use crate::statistic::distribution::{cov_stdev, rank, RankMode};
/// use traquer::correlation;
///
/// correlation::pcc(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 6).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -91,8 +91,8 @@ pub fn pcc<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::rsq(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 6).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -124,8 +124,8 @@ pub fn rsq<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::beta(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 2).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -189,8 +189,8 @@ pub fn beta<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::perf(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 2).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -227,8 +227,8 @@ pub fn perf<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::rsc(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// ).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -262,8 +262,8 @@ pub fn rsc<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::srcc(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 6).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -308,8 +308,8 @@ pub fn srcc<'a, T: ToPrimitive + PartialOrd + Clone>(
/// use traquer::correlation;
///
/// correlation::krcc(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 6).collect::<Vec<f64>>();
///
/// ```
Expand Down Expand Up @@ -370,8 +370,8 @@ pub fn krcc<'a, T: ToPrimitive>(
/// use traquer::correlation;
///
/// correlation::hoeffd(
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &vec![1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// &[1.0,2.0,3.0,4.0,5.0,6.0,4.0,5.0],
/// 6).collect::<Vec<f64>>();
///
/// ```
Expand Down
Loading

0 comments on commit c4423f5

Please sign in to comment.