App-StatisticsUtils

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Test::Pod" : "1.41",
            "Test::Pod::Coverage" : "1.08",
            "Test::Rinci" : "0.151"
         },
         "x_spec" : {
            "Rinci" : "v1.1.96"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::Sah::Coerce::perl::To_float::From_str::percent" : "0",
            "Data::Sah::Compiler::perl::TH::float" : "0",
            "Perinci::CmdLine::Any" : "0",
            "Perinci::CmdLine::Lite" : "1.827",
            "Statistics::Standard_Normal" : "0",
            "perl" : "5.010001",
            "strict" : "0",
            "warnings" : "0"
         }
      },
      "test" : {

META.yml  view on Meta::CPAN

configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: App-StatisticsUtils
requires:
  Data::Sah::Coerce::perl::To_float::From_str::percent: '0'
  Data::Sah::Compiler::perl::TH::float: '0'
  Perinci::CmdLine::Any: '0'
  Perinci::CmdLine::Lite: '1.827'
  Statistics::Standard_Normal: '0'
  perl: '5.010001'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/perlancar/perl-App-StatisticsUtils/issues
  homepage: https://metacpan.org/release/App-StatisticsUtils

Makefile.PL  view on Meta::CPAN

  },
  "DISTNAME" => "App-StatisticsUtils",
  "EXE_FILES" => [
    "script/pct2z",
    "script/z2pct"
  ],
  "LICENSE" => "perl",
  "MIN_PERL_VERSION" => "5.010001",
  "NAME" => "App::StatisticsUtils",
  "PREREQ_PM" => {
    "Data::Sah::Coerce::perl::To_float::From_str::percent" => 0,
    "Data::Sah::Compiler::perl::TH::float" => 0,
    "Perinci::CmdLine::Any" => 0,
    "Perinci::CmdLine::Lite" => "1.827",
    "Statistics::Standard_Normal" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "IO::Handle" => 0,

Makefile.PL  view on Meta::CPAN

    "Test::More" => 0
  },
  "VERSION" => "0.002",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "Data::Sah::Coerce::perl::To_float::From_str::percent" => 0,
  "Data::Sah::Compiler::perl::TH::float" => 0,
  "File::Spec" => 0,
  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "Perinci::CmdLine::Any" => 0,
  "Perinci::CmdLine::Lite" => "1.827",
  "Statistics::Standard_Normal" => 0,
  "Test::More" => 0,
  "strict" => 0,
  "warnings" => 0

README  view on Meta::CPAN

    *   pct2z

    *   z2pct

FUNCTIONS
  pct2z
    Usage:

     pct2z($pct) -> any

    Convert percentile to z-score (for standard normal distribution).

    Examples:

    *   Example #1:

         pct2z(50); # -> 0

    *   Example #2:

         pct2z(5); # -> -1.644854

README  view on Meta::CPAN


    *   $pct* => *float*

    Return value: (any)

  z2pct
    Usage:

     z2pct($z) -> any

    Convert z-score to percentile (for standard normal distribution).

    Examples:

    *   Example #1:

         z2pct(0); # -> 50

    *   Example #2:

         z2pct(-2); # -> 2.28655435304153

lib/App/StatisticsUtils.pm  view on Meta::CPAN


our %SPEC;

$SPEC{':package'} = {
    v => 1.1,
    summary => 'CLI utilities related to statistics',
};

$SPEC{z2pct} = {
    v => 1.1,
    summary => 'Convert z-score to percentile (for standard normal distribution)',
    args_as => 'array',
    args => {
        z => {
            schema => 'float*',
            req => 1,
            pos => 0,
        },
    },
    result_naked => 1,
    examples => [

lib/App/StatisticsUtils.pm  view on Meta::CPAN

        },
    ],
};
sub z2pct {
    require Statistics::Standard_Normal;
    Statistics::Standard_Normal::z_to_pct(shift);
}

$SPEC{pct2z} = {
    v => 1.1,
    summary => 'Convert percentile to z-score (for standard normal distribution)',
    args_as => 'array',
    args => {
        pct => {
            schema => ['float*', xbetween=>[0,100]],
            req => 1,
            pos => 0,
        },
    },
    result_naked => 1,
    examples => [

lib/App/StatisticsUtils.pm  view on Meta::CPAN


=head1 FUNCTIONS


=head2 pct2z

Usage:

 pct2z($pct) -> any

Convert percentile to z-score (for standard normal distribution).

Examples:

=over

=item * Example #1:

 pct2z(50); # -> 0

=item * Example #2:

lib/App/StatisticsUtils.pm  view on Meta::CPAN

Return value:  (any)



=head2 z2pct

Usage:

 z2pct($z) -> any

Convert z-score to percentile (for standard normal distribution).

Examples:

=over

=item * Example #1:

 z2pct(0); # -> 50

=item * Example #2:

script/pct2z  view on Meta::CPAN


my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/StatisticsUtils/pct2z",
    program_name => "pct2z",
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Convert percentile to z-score (for standard normal distribution)
# PODNAME: pct2z

__END__

=pod

=encoding UTF-8

=head1 NAME

pct2z - Convert percentile to z-score (for standard normal distribution)

=head1 VERSION

This document describes version 0.002 of pct2z (from Perl distribution App-StatisticsUtils), released on 2021-02-21.

=head1 SYNOPSIS

Usage:

 % pct2z [--format=name] [--json] [--(no)naked-res]

script/z2pct  view on Meta::CPAN


my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/StatisticsUtils/z2pct",
    program_name => "z2pct",
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Convert z-score to percentile (for standard normal distribution)
# PODNAME: z2pct

__END__

=pod

=encoding UTF-8

=head1 NAME

z2pct - Convert z-score to percentile (for standard normal distribution)

=head1 VERSION

This document describes version 0.002 of z2pct (from Perl distribution App-StatisticsUtils), released on 2021-02-21.

=head1 SYNOPSIS

Usage:

 % z2pct [--format=name] [--json] [--(no)naked-res]



( run in 0.367 second using v1.01-cache-2.11-cpan-709fd43a63f )