1. Shlomi Fish
  2. perl-Statistics-Descriptive

Commits

Shlomi Fish  committed 06dce05

Indent the new code samples by steps of 4 whitespaces instead of 1.

  • Participants
  • Parent commits 5a09b34
  • Branches default

Comments (0)

Files changed (1)

File Statistics-Descriptive/lib/Statistics/Descriptive.pm

View file
  • Ignore whitespace
 
 Example #1: Undefined code reference
 
- my $stat = Statistics::Descriptive::Full->new();
- $stat->add_data(1, 2, 3, 4, 5);
+    my $stat = Statistics::Descriptive::Full->new();
+    $stat->add_data(1, 2, 3, 4, 5);
 
- print $stat->set_outlier_filter(); # => undef
+    print $stat->set_outlier_filter(); # => undef
 
 =item
 
 Example #2: Valid code reference
 
- sub outlier_filter { return $_[0] > 1; }
+    sub outlier_filter { return $_[0] > 1; }
 
- my $stat = Statistics::Descriptive::Full->new();
- $stat->add_data( 1, 1, 1, 100, 1, );
+    my $stat = Statistics::Descriptive::Full->new();
+    $stat->add_data( 1, 1, 1, 100, 1, );
   
- print $stat->set_outlier_filter( \&outlier_filter ); # => 1
- my @filtered_data = $stat->get_data_without_outliers(); # @filtered_data is (1, 1, 1, 1)
+    print $stat->set_outlier_filter( \&outlier_filter ); # => 1
+    my @filtered_data = $stat->get_data_without_outliers();
+    # @filtered_data is (1, 1, 1, 1)
 
 In this example the series is really simple and the outlier filter function as well.
 For more complex series the outlier filter function might be more complex