App-boxmuller
view release on metacpan or search on metacpan
Revision history for App-boxmuller
0.24 2018-07-03
English manual has been transported from raw text into POD text.
0.23 2018-06-27
First version, released on an unsuspecting world.
},
"configure" : {
"requires" : {
"Module::Build" : "0"
}
}
},
"provides" : {
"App::boxmuller" : {
"file" : "lib/App/boxmuller.pm",
"version" : "0.24"
}
},
"release_status" : "stable",
"resources" : {
"license" : [
"http://www.gnu.org/licenses/gpl-3.0.txt"
]
},
"version" : "0.24",
"x_serialization_backend" : "JSON::PP version 2.97001"
}
dynamic_config: 1
generated_by: 'Module::Build version 0.4224, CPAN::Meta::Converter version 2.150010'
license: gpl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: App-boxmuller
provides:
App::boxmuller:
file: lib/App/boxmuller.pm
version: '0.24'
resources:
license: http://www.gnu.org/licenses/gpl-3.0.txt
version: '0.24'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
lib/App/boxmuller.pm view on Meta::CPAN
use 5.006;
use strict;
use warnings;
=head1 NAME
App::boxmuller - Provides the command which produces Gaussian distributed random numbers, as well as log-normal distributed numbers.
=head1 VERSION
Version 0.24
=cut
our $VERSION = '0.24';
=head1 SYNOPSIS
boxmuller [B<-m> mean] [B<-v> variance | B<-d> standard_deviation]
[B<-g> how_many_you_want] [B<-.> digits_after_decimal_point] [B<-s> random_seed]
[B<-L>(log normal)] [B<-@> seconds] [B<-1>] [B<-:>]
boxmuller [B<--help> [ja|en] [opt] [nopod]] [B<--version>]
=head1 DESCRIPTION
scripts/boxmuller view on Meta::CPAN
CYAN " , used random seed: " , BRIGHT_CYAN $o{s} ,
CYAN " , elapsed seconds: " , BRIGHT_CYAN tv_interval ($time0) ,
RESET "\n" ,
CYAN "sum = " , BRIGHT_CYAN sprintf("%g", $s1 ) ,
CYAN " , squared sum = " , BRIGHT_CYAN sprintf( "%g" , $s2 ) ,
CYAN " ($cmd) " , RESET "\n" ;
}
## ãã«ãã¨ãã¼ã¸ã§ã³æ
å ±
BEGIN {
our $VERSION = 0.24 ;
$Getopt::Std::STANDARD_HELP_VERSION = 1 ;
grep { m/--help/} @ARGV and *VERSION_MESSAGE = sub {} ;
# æå㯠0.21 ãç®å®ã¨ããã
# 1.00 以ä¸ã¨ããå¿
è¦æ¡ä»¶ã¯è±èªçã®ãã«ãããã¡ãã¨åºããã¨ã
# 2.00 以ä¸ã¨ããå¿
è¦æ¡ä»¶ã¯ãã¹ãã³ã¼ããå«ããã¨ã
# 0.22 : -g inf ãæå®å¯è½ã¨ããã
# 0.23 : 説ææãåããå®ãããã
# 0.24 : è±èªã®ããã¥ã¢ã«ãPODåããã
}
sub HELP_MESSAGE {
use FindBin qw[ $Script $Bin ] ;
sub EnvJ ( ) { $ENV{LANG} =~ m/^ja_JP/ ? 1 : 0 } ; # # ja_JP.UTF-8
sub en( ) { grep ( /^en(g(i(sh?)?)?)?/i , @ARGV ) ? 1 : 0 } # English ã¨ããæååãå
é ãã2æå以ä¸ãå«ãã
sub ja( ) { grep ( /^jp$|^ja(p(a(n?)?)?)?/i , @ARGV ) ? 1 : 0 } # jp ã¾ã㯠japan ã¨ããæååãå
é ãã2æå以ä¸ãå«ãã
sub opt( ) { grep (/^opt(i(o(ns?)?)?)?$/i, @ARGV ) ? 1 : 0 } # options ã¨ããæååãå
é ãã3æå以ä¸å«ããã
sub noPOD ( ) { grep (/^no-?pod\b/i, @ARGV) ? 1 : 0 } # POD ã使ããªãã¨è¨ãæå®ãããã¦ãããã©ãã
my $jd = "JapaneseManual" ;
scripts/boxmuller view on Meta::CPAN
}
=encoding utf8
=head1 NAME
boxmuller
=head1 VERSION
0.24 -- 2018-07-03
=head1 SYNOPSIS
boxmuller [B<-m> mean] [B<-v> variance | B<-d> standard_deviation]
[B<-g> how_many_you_want] [B<-.> digits_after_decimal_point] [B<-s> random_seed]
[B<-L>(log normal)] [B<-@> seconds] [B<-1>] [B<-:>]
boxmuller [B<--help> [ja|en] [opt] [nopod]] [B<--version>]
=head1 DESCRIPTION
( run in 1.401 second using v1.01-cache-2.11-cpan-88abd93f124 )