Codebase list libpdl-stats-perl / 8fec8d3
Update upstream source from tag 'upstream/0.81' Update to upstream version '0.81' with Debian dir 4bad8075b948d1101ad96ac68cf431b00d78b04b Bas Couwenberg 2 years ago
10 changed file(s) with 834 addition(s) and 705 deletion(s). Raw diff Collapse all Expand all
0 0.81 2022-01-11
1 - fix Kmeans NiceSlice for PDL 2.066
2
03 0.80 2021-10-02
14 - add COV option to GLM::logistic - thanks David Myers for suggestion (in 2011)
25 - make all PLOT options default to off; only load PGPLOT when try to use
22 #
33 package PDL::Stats::Basic;
44
5 our @EXPORT_OK = qw( binomial_test rtable which_id PDL::PP stdv PDL::PP stdv_unbiased PDL::PP var PDL::PP var_unbiased PDL::PP se PDL::PP ss PDL::PP skew PDL::PP skew_unbiased PDL::PP kurt PDL::PP kurt_unbiased PDL::PP cov PDL::PP cov_table PDL::PP corr PDL::PP corr_table PDL::PP t_corr PDL::PP n_pair PDL::PP corr_dev PDL::PP t_test PDL::PP t_test_nev PDL::PP t_test_paired );
5 our @EXPORT_OK = qw(binomial_test rtable which_id stdv stdv_unbiased var var_unbiased se ss skew skew_unbiased kurt kurt_unbiased cov cov_table corr corr_table t_corr n_pair corr_dev t_test t_test_nev t_test_paired );
66 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
77
88 use PDL::Core;
1919
2020
2121
22
23 #line 5 "stats_basic.pd"
24
2225 use PDL::LiteF;
2326 use PDL::NiceSlice;
2427 use Carp;
4952 my $stdv = stdv( $data );
5053
5154 =cut
52
55 #line 57 "Basic.pm"
5356
5457
5558
6366
6467
6568
69 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
70
6671
6772 =head2 stdv
6873
8691
8792
8893 =cut
89
90
91
92
93
94
94 #line 96 "Basic.pm"
95
96
97
98 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
9599 *stdv = \&PDL::stdv;
96
97
98
100 #line 102 "Basic.pm"
101
102
103
104 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
99105
100106
101107 =head2 stdv_unbiased
120126
121127
122128 =cut
123
124
125
126
127
128
129 #line 131 "Basic.pm"
130
131
132
133 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
129134 *stdv_unbiased = \&PDL::stdv_unbiased;
130
131
132
135 #line 137 "Basic.pm"
136
137
138
139 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
133140
134141
135142 =head2 var
154161
155162
156163 =cut
157
158
159
160
161
162
164 #line 166 "Basic.pm"
165
166
167
168 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
163169 *var = \&PDL::var;
164
165
166
170 #line 172 "Basic.pm"
171
172
173
174 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
167175
168176
169177 =head2 var_unbiased
188196
189197
190198 =cut
191
192
193
194
195
196
199 #line 201 "Basic.pm"
200
201
202
203 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
197204 *var_unbiased = \&PDL::var_unbiased;
198
199
200
205 #line 207 "Basic.pm"
206
207
208
209 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
201210
202211
203212 =head2 se
229238
230239
231240 =cut
232
233
234
235
236
237
241 #line 243 "Basic.pm"
242
243
244
245 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
238246 *se = \&PDL::se;
239
240
241
247 #line 249 "Basic.pm"
248
249
250
251 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
242252
243253
244254 =head2 ss
263273
264274
265275 =cut
266
267
268
269
270
271
276 #line 278 "Basic.pm"
277
278
279
280 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
272281 *ss = \&PDL::ss;
273
274
275
282 #line 284 "Basic.pm"
283
284
285
286 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
276287
277288
278289 =head2 skew
297308
298309
299310 =cut
300
301
302
303
304
305
311 #line 313 "Basic.pm"
312
313
314
315 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
306316 *skew = \&PDL::skew;
307
308
309
317 #line 319 "Basic.pm"
318
319
320
321 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
310322
311323
312324 =head2 skew_unbiased
331343
332344
333345 =cut
334
335
336
337
338
339
346 #line 348 "Basic.pm"
347
348
349
350 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
340351 *skew_unbiased = \&PDL::skew_unbiased;
341
342
343
352 #line 354 "Basic.pm"
353
354
355
356 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
344357
345358
346359 =head2 kurt
365378
366379
367380 =cut
368
369
370
371
372
373
381 #line 383 "Basic.pm"
382
383
384
385 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
374386 *kurt = \&PDL::kurt;
375
376
377
387 #line 389 "Basic.pm"
388
389
390
391 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
378392
379393
380394 =head2 kurt_unbiased
399413
400414
401415 =cut
402
403
404
405
406
407
416 #line 418 "Basic.pm"
417
418
419
420 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
408421 *kurt_unbiased = \&PDL::kurt_unbiased;
409
410
411
422 #line 424 "Basic.pm"
423
424
425
426 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
412427
413428
414429 =head2 cov
433448
434449
435450 =cut
436
437
438
439
440
441
451 #line 453 "Basic.pm"
452
453
454
455 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
442456 *cov = \&PDL::cov;
443
444
445
457 #line 459 "Basic.pm"
458
459
460
461 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
446462
447463
448464 =head2 cov_table
499515
500516
501517 =cut
502
503
504
505
506
507
518 #line 520 "Basic.pm"
519
520
521
522 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
508523 *cov_table = \&PDL::cov_table;
509
510
511
524 #line 526 "Basic.pm"
525
526
527
528 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
512529
513530
514531 =head2 corr
555572
556573
557574 =cut
558
559
560
561
562
563
575 #line 577 "Basic.pm"
576
577
578
579 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
564580 *corr = \&PDL::corr;
565
566
567
581 #line 583 "Basic.pm"
582
583
584
585 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
568586
569587
570588 =head2 corr_table
617635
618636
619637 =cut
620
621
622
623
624
625
638 #line 640 "Basic.pm"
639
640
641
642 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
626643 *corr_table = \&PDL::corr_table;
627
628
629
644 #line 646 "Basic.pm"
645
646
647
648 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
630649
631650
632651 =head2 t_corr
661680
662681
663682 =cut
664
665
666
667
668
669
683 #line 685 "Basic.pm"
684
685
686
687 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
670688 *t_corr = \&PDL::t_corr;
671
672
673
689 #line 691 "Basic.pm"
690
691
692
693 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
674694
675695
676696 =head2 n_pair
695715
696716
697717 =cut
698
699
700
701
702
703
718 #line 720 "Basic.pm"
719
720
721
722 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
704723 *n_pair = \&PDL::n_pair;
705
706
707
724 #line 726 "Basic.pm"
725
726
727
728 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
708729
709730
710731 =head2 corr_dev
733754
734755
735756 =cut
736
737
738
739
740
741
757 #line 759 "Basic.pm"
758
759
760
761 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
742762 *corr_dev = \&PDL::corr_dev;
743
744
745
763 #line 765 "Basic.pm"
764
765
766
767 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
746768
747769
748770 =head2 t_test
775797
776798
777799 =cut
778
779
780
781
782
783
800 #line 802 "Basic.pm"
801
802
803
804 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
784805 *t_test = \&PDL::t_test;
785
786
787
806 #line 808 "Basic.pm"
807
808
809
810 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
788811
789812
790813 =head2 t_test_nev
813836
814837
815838 =cut
816
817
818
819
820
821
839 #line 841 "Basic.pm"
840
841
842
843 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
822844 *t_test_nev = \&PDL::t_test_nev;
823
824
825
845 #line 847 "Basic.pm"
846
847
848
849 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
826850
827851
828852 =head2 t_test_paired
847871
848872
849873 =cut
850
851
852
853
854
855
874 #line 876 "Basic.pm"
875
876
877
878 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
856879 *t_test_paired = \&PDL::t_test_paired;
857
858
859
860
861 #line 1252 "Basic/stats_basic.pd"
880 #line 882 "Basic.pm"
881
882
883
884 #line 1252 "stats_basic.pd"
885
886 #line 1252 "stats_basic.pd"
862887
863888 =head2 binomial_test
864889
12921317 All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution.
12931318
12941319 =cut
1295
1296
1297 ;
1320 #line 1687 "stats_basic.pd"
1321 #line 1323 "Basic.pm"
1322
1323
1324
12981325
12991326
13001327
22 #
33 package PDL::Stats::Distr;
44
5 our @EXPORT_OK = qw( PDL::PP mme_beta PDL::PP pdf_beta PDL::PP mme_binomial PDL::PP pmf_binomial PDL::PP mle_exp PDL::PP pdf_exp PDL::PP mme_gamma PDL::PP pdf_gamma PDL::PP mle_gaussian PDL::PP pdf_gaussian PDL::PP mle_geo PDL::PP pmf_geo PDL::PP mle_geosh PDL::PP pmf_geosh PDL::PP mle_lognormal PDL::PP mme_lognormal PDL::PP pdf_lognormal PDL::PP mme_nbd PDL::PP pmf_nbd PDL::PP mme_pareto PDL::PP pdf_pareto PDL::PP mle_poisson PDL::PP pmf_poisson PDL::PP pmf_poisson_stirling PDL::PP _pmf_poisson_factorial );
5 our @EXPORT_OK = qw(mme_beta pdf_beta mme_binomial pmf_binomial mle_exp pdf_exp mme_gamma pdf_gamma mle_gaussian pdf_gaussian mle_geo pmf_geo mle_geosh pmf_geosh mle_lognormal mme_lognormal pdf_lognormal mme_nbd pmf_nbd mme_pareto pdf_pareto mle_poisson pmf_poisson pmf_poisson_stirling _pmf_poisson_factorial );
66 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
77
88 use PDL::Core;
1919
2020
2121
22
23 #line 4 "distr.pd"
24
2225 use strict;
2326 use warnings;
2427
6770 $data->plot_distr( 'gaussian', 'lognormal' );
6871
6972 =cut
70
73 #line 75 "Distr.pm"
7174
7275
7376
8184
8285
8386
87 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
88
8489
8590 =head2 mme_beta
8691
108113
109114
110115 =cut
111
112
113
114
115
116
116 #line 118 "Distr.pm"
117
118
119
120 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
117121 *mme_beta = \&PDL::mme_beta;
118
119
120
122 #line 124 "Distr.pm"
123
124
125
126 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
121127
122128
123129 =head2 pdf_beta
142148
143149
144150 =cut
145
146
147
148
149
150
151 #line 153 "Distr.pm"
152
153
154
155 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
151156 *pdf_beta = \&PDL::pdf_beta;
152
153
154
157 #line 159 "Distr.pm"
158
159
160
161 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
155162
156163
157164 =head2 mme_binomial
180187
181188
182189 =cut
183
184
185
186
187
188
190 #line 192 "Distr.pm"
191
192
193
194 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
189195 *mme_binomial = \&PDL::mme_binomial;
190
191
192
196 #line 198 "Distr.pm"
197
198
199
200 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
193201
194202
195203 =head2 pmf_binomial
214222
215223
216224 =cut
217
218
219
220
221
222
225 #line 227 "Distr.pm"
226
227
228
229 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
223230 *pmf_binomial = \&PDL::pmf_binomial;
224
225
226
231 #line 233 "Distr.pm"
232
233
234
235 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
227236
228237
229238 =head2 mle_exp
252261
253262
254263 =cut
255
256
257
258
259
260
264 #line 266 "Distr.pm"
265
266
267
268 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
261269 *mle_exp = \&PDL::mle_exp;
262
263
264
270 #line 272 "Distr.pm"
271
272
273
274 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
265275
266276
267277 =head2 pdf_exp
286296
287297
288298 =cut
289
290
291
292
293
294
299 #line 301 "Distr.pm"
300
301
302
303 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
295304 *pdf_exp = \&PDL::pdf_exp;
296
297
298
305 #line 307 "Distr.pm"
306
307
308
309 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
299310
300311
301312 =head2 mme_gamma
324335
325336
326337 =cut
327
328
329
330
331
332
338 #line 340 "Distr.pm"
339
340
341
342 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
333343 *mme_gamma = \&PDL::mme_gamma;
334
335
336
344 #line 346 "Distr.pm"
345
346
347
348 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
337349
338350
339351 =head2 pdf_gamma
358370
359371
360372 =cut
361
362
363
364
365
366
373 #line 375 "Distr.pm"
374
375
376
377 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
367378 *pdf_gamma = \&PDL::pdf_gamma;
368
369
370
379 #line 381 "Distr.pm"
380
381
382
383 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
371384
372385
373386 =head2 mle_gaussian
396409
397410
398411 =cut
399
400
401
402
403
404
412 #line 414 "Distr.pm"
413
414
415
416 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
405417 *mle_gaussian = \&PDL::mle_gaussian;
406
407
408
418 #line 420 "Distr.pm"
419
420
421
422 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
409423
410424
411425 =head2 pdf_gaussian
430444
431445
432446 =cut
433
434
435
436
437
438
447 #line 449 "Distr.pm"
448
449
450
451 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
439452 *pdf_gaussian = \&PDL::pdf_gaussian;
440
441
442
453 #line 455 "Distr.pm"
454
455
456
457 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
443458
444459
445460 =head2 mle_geo
464479
465480
466481 =cut
467
468
469
470
471
472
482 #line 484 "Distr.pm"
483
484
485
486 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
473487 *mle_geo = \&PDL::mle_geo;
474
475
476
488 #line 490 "Distr.pm"
489
490
491
492 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
477493
478494
479495 =head2 pmf_geo
498514
499515
500516 =cut
501
502
503
504
505
506
517 #line 519 "Distr.pm"
518
519
520
521 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
507522 *pmf_geo = \&PDL::pmf_geo;
508
509
510
523 #line 525 "Distr.pm"
524
525
526
527 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
511528
512529
513530 =head2 mle_geosh
532549
533550
534551 =cut
535
536
537
538
539
540
552 #line 554 "Distr.pm"
553
554
555
556 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
541557 *mle_geosh = \&PDL::mle_geosh;
542
543
544
558 #line 560 "Distr.pm"
559
560
561
562 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
545563
546564
547565 =head2 pmf_geosh
566584
567585
568586 =cut
569
570
571
572
573
574
587 #line 589 "Distr.pm"
588
589
590
591 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
575592 *pmf_geosh = \&PDL::pmf_geosh;
576
577
578
593 #line 595 "Distr.pm"
594
595
596
597 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
579598
580599
581600 =head2 mle_lognormal
604623
605624
606625 =cut
607
608
609
610
611
612
626 #line 628 "Distr.pm"
627
628
629
630 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
613631 *mle_lognormal = \&PDL::mle_lognormal;
614
615
616
632 #line 634 "Distr.pm"
633
634
635
636 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
617637
618638
619639 =head2 mme_lognormal
642662
643663
644664 =cut
645
646
647
648
649
650
665 #line 667 "Distr.pm"
666
667
668
669 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
651670 *mme_lognormal = \&PDL::mme_lognormal;
652
653
654
671 #line 673 "Distr.pm"
672
673
674
675 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
655676
656677
657678 =head2 pdf_lognormal
676697
677698
678699 =cut
679
680
681
682
683
684
700 #line 702 "Distr.pm"
701
702
703
704 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
685705 *pdf_lognormal = \&PDL::pdf_lognormal;
686
687
688
706 #line 708 "Distr.pm"
707
708
709
710 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
689711
690712
691713 =head2 mme_nbd
714736
715737
716738 =cut
717
718
719
720
721
722
739 #line 741 "Distr.pm"
740
741
742
743 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
723744 *mme_nbd = \&PDL::mme_nbd;
724
725
726
745 #line 747 "Distr.pm"
746
747
748
749 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
727750
728751
729752 =head2 pmf_nbd
748771
749772
750773 =cut
751
752
753
754
755
756
774 #line 776 "Distr.pm"
775
776
777
778 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
757779 *pmf_nbd = \&PDL::pmf_nbd;
758
759
760
780 #line 782 "Distr.pm"
781
782
783
784 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
761785
762786
763787 =head2 mme_pareto
786810
787811
788812 =cut
789
790
791
792
793
794
813 #line 815 "Distr.pm"
814
815
816
817 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
795818 *mme_pareto = \&PDL::mme_pareto;
796
797
798
819 #line 821 "Distr.pm"
820
821
822
823 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
799824
800825
801826 =head2 pdf_pareto
820845
821846
822847 =cut
823
824
825
826
827
828
848 #line 850 "Distr.pm"
849
850
851
852 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
829853 *pdf_pareto = \&PDL::pdf_pareto;
830
831
832
854 #line 856 "Distr.pm"
855
856
857
858 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
833859
834860
835861 =head2 mle_poisson
858884
859885
860886 =cut
861
862
863
864
865
866
887 #line 889 "Distr.pm"
888
889
890
891 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
867892 *mle_poisson = \&PDL::mle_poisson;
868
869
870
893 #line 895 "Distr.pm"
894
895
896
897 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
871898
872899
873900 =head2 pmf_poisson
892919
893920
894921 =cut
895
896
897
898
899
900
922 #line 924 "Distr.pm"
923
924
925
926 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
901927 *pmf_poisson = \&PDL::pmf_poisson;
902
903
904
928 #line 930 "Distr.pm"
929
930
931
932 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
905933
906934
907935 =head2 pmf_poisson_stirling
926954
927955
928956 =cut
929
930
931
932
933
934
957 #line 959 "Distr.pm"
958
959
960
961 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
935962 *pmf_poisson_stirling = \&PDL::pmf_poisson_stirling;
936
937
938
939
940 #line 1139 "Distr/distr.pd"
963 #line 965 "Distr.pm"
964
965
966
967 #line 1139 "distr.pd"
968
969 #line 1139 "distr.pd"
941970
942971 =head2 pmf_poisson_factorial
943972
962991 return _pmf_poisson_factorial(@_);
963992 }
964993 }
965
966
967
968
994 #line 1165 "distr.pd"
995 #line 997 "Distr.pm"
996
997
998
999 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
9691000 *_pmf_poisson_factorial = \&PDL::_pmf_poisson_factorial;
970
971
972
973 ;
974
975
976 #line 1201 "Distr/distr.pd"
1001 #line 1003 "Distr.pm"
1002
1003
1004
1005
1006
1007 #line 1201 "distr.pd"
1008
1009 #line 1201 "distr.pd"
9771010
9781011 =head2 plot_distr
9791012
11171150 All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution.
11181151
11191152 =cut
1153 #line 1346 "distr.pd"
1154 #line 1156 "Distr.pm"
11201155
11211156
11221157
22 #
33 package PDL::Stats::GLM;
44
5 our @EXPORT_OK = qw( ols_t anova anova_rptd dummy_code effect_code effect_code_w interaction_code ols ols_rptd r2_change logistic pca pca_sorti plot_means plot_residuals plot_screes PDL::PP fill_m PDL::PP fill_rand PDL::PP dev_m PDL::PP stddz PDL::PP sse PDL::PP mse PDL::PP rmse PDL::PP pred_logistic PDL::PP d0 PDL::PP dm PDL::PP dvrs );
5 our @EXPORT_OK = qw(ols_t anova anova_rptd dummy_code effect_code effect_code_w interaction_code ols ols_rptd r2_change logistic pca pca_sorti plot_means plot_residuals plot_screes fill_m fill_rand dev_m stddz sse mse rmse pred_logistic d0 dm dvrs );
66 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
77
88 use PDL::Core;
1818
1919
2020
21
22
23 #line 4 "glm.pd"
2124
2225 use strict;
2326 use warnings;
6669 print "$_\t$m{$_}\n" for (sort keys %m);
6770
6871 =cut
69
72 #line 74 "GLM.pm"
7073
7174
7275
7982
8083
8184
85
86 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
8287
8388
8489 =head2 fill_m
116121
117122
118123 =cut
119
120
121
122
123
124
124 #line 126 "GLM.pm"
125
126
127
128 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
125129 *fill_m = \&PDL::fill_m;
126
127
128
130 #line 132 "GLM.pm"
131
132
133
134 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
129135
130136
131137 =head2 fill_rand
164170
165171
166172 =cut
167
168
169
170
171
172
173 #line 175 "GLM.pm"
174
175
176
177 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
173178 *fill_rand = \&PDL::fill_rand;
174
175
176
179 #line 181 "GLM.pm"
180
181
182
183 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
177184
178185
179186 =head2 dev_m
198205
199206
200207 =cut
201
202
203
204
205
206
208 #line 210 "GLM.pm"
209
210
211
212 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
207213 *dev_m = \&PDL::dev_m;
208
209
210
214 #line 216 "GLM.pm"
215
216
217
218 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
211219
212220
213221 =head2 stddz
231239
232240
233241 =cut
234
235
236
237
238
239
242 #line 244 "GLM.pm"
243
244
245
246 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
240247 *stddz = \&PDL::stddz;
241
242
243
248 #line 250 "GLM.pm"
249
250
251
252 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
244253
245254
246255 =head2 sse
265274
266275
267276 =cut
268
269
270
271
272
273
277 #line 279 "GLM.pm"
278
279
280
281 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
274282 *sse = \&PDL::sse;
275
276
277
283 #line 285 "GLM.pm"
284
285
286
287 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
278288
279289
280290 =head2 mse
299309
300310
301311 =cut
302
303
304
305
306
307
312 #line 314 "GLM.pm"
313
314
315
316 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
308317 *mse = \&PDL::mse;
309
310
311
318 #line 320 "GLM.pm"
319
320
321
322 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
312323
313324
314325 =head2 rmse
333344
334345
335346 =cut
336
337
338
339
340
341
347 #line 349 "GLM.pm"
348
349
350
351 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
342352 *rmse = \&PDL::rmse;
343
344
345
353 #line 355 "GLM.pm"
354
355
356
357 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
346358
347359
348360 =head2 pred_logistic
373385
374386
375387 =cut
376
377
378
379
380
381
388 #line 390 "GLM.pm"
389
390
391
392 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
382393 *pred_logistic = \&PDL::pred_logistic;
383
384
385
394 #line 396 "GLM.pm"
395
396
397
398 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
386399
387400
388401 =head2 d0
410423
411424
412425 =cut
413
414
415
416
417
418
426 #line 428 "GLM.pm"
427
428
429
430 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
419431 *d0 = \&PDL::d0;
420
421
422
432 #line 434 "GLM.pm"
433
434
435
436 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
423437
424438
425439 =head2 dm
450464
451465
452466 =cut
453
454
455
456
457
458
467 #line 469 "GLM.pm"
468
469
470
471 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
459472 *dm = \&PDL::dm;
460
461
462
473 #line 475 "GLM.pm"
474
475
476
477 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
463478
464479
465480 =head2 dvrs
484499
485500
486501 =cut
487
488
489
490
491
492
502 #line 504 "GLM.pm"
503
504
505
506 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
493507 *dvrs = \&PDL::dvrs;
494
495
496
497
498 #line 594 "GLM/glm.pd"
508 #line 510 "GLM.pm"
509
510
511
512 #line 594 "glm.pd"
513
514 #line 594 "glm.pd"
499515
500516 # my tmp var for PDL 2.007 slice upate
501517 my $_tmp;
25572573 All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution.
25582574
25592575 =cut
2560
2561
2562 ;
2576 #line 2657 "glm.pd"
2577 #line 2579 "GLM.pm"
2578
2579
2580
25632581
25642582
25652583
22 #
33 package PDL::Stats::Kmeans;
44
5 our @EXPORT_OK = qw( random_cluster iv_cluster PDL::PP _random_cluster PDL::PP which_cluster PDL::PP assign PDL::PP centroid PDL::PP _d_p2l );
5 our @EXPORT_OK = qw(random_cluster iv_cluster _random_cluster which_cluster assign centroid _d_p2l );
66 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
77
88 use PDL::Core;
1818
1919
2020
21
22
23 #line 4 "kmeans.pd"
2124
2225 use Carp;
2326 use PDL::LiteF;
7679 for (0 .. $k{cluster}->dim(1)-1);
7780
7881 =cut
79
82 #line 84 "Kmeans.pm"
8083
8184
8285
9093
9194
9295
93 #line 75 "Kmeans/kmeans.pd"
96 #line 75 "kmeans.pd"
97
98 #line 75 "kmeans.pd"
9499
95100 # my tmp var for PDL 2.007 slice upate
96101 my $_tmp;
121126 } while (PDL::any $cluster->sumover == 0 );
122127 return $cluster;
123128 }
124
125
126
127
129 #line 107 "kmeans.pd"
130 #line 132 "Kmeans.pm"
131
132
133
134 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
128135 *_random_cluster = \&PDL::_random_cluster;
129
130
131
136 #line 138 "Kmeans.pm"
137
138
139
140 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
132141
133142
134143 =head2 which_cluster
163172
164173
165174 =cut
166
167
168
169
170
171
175 #line 177 "Kmeans.pm"
176
177
178
179 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
172180 *which_cluster = \&PDL::which_cluster;
173
174
175
181 #line 183 "Kmeans.pm"
182
183
184
185 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
176186
177187
178188 =head2 assign
223233
224234
225235 =cut
226
227
228
229
230
231
236 #line 238 "Kmeans.pm"
237
238
239
240 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
232241 *assign = \&PDL::assign;
233
234
235
242 #line 244 "Kmeans.pm"
243
244
245
246 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
236247
237248
238249 =head2 centroid
292303
293304
294305 =cut
295
296
297
298
299
300
306 #line 308 "Kmeans.pm"
307
308
309
310 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
301311 *centroid = \&PDL::centroid;
302
303
304
305
306 #line 432 "Kmeans/kmeans.pd"
312 #line 314 "Kmeans.pm"
313
314
315
316 #line 432 "kmeans.pd"
317
318 #line 432 "kmeans.pd"
307319
308320 sub _scree_ind {
309321 # use as scree cutoff the point with max distance to the line formed
318330 croak "1D pdl only please";
319331
320332 my $a = zeroes 2, $self->nelem;
321 ($_tmp = $a((0), )) .= sequence $self->nelem;
322 ($_tmp = $a((1), )) .= $self;
323
324 my $d = _d_point2line( $a, $a( ,(0)), $a( ,(-1)) );
333 ($_tmp = $a->slice('(0)')) .= sequence $self->nelem;
334 ($_tmp = $a->slice('(1)')) .= $self;
335
336 my $d = _d_point2line( $a, $a->slice(':,(0)'), $a->slice(':,(-1)') );
325337
326338 return $d->maximum_ind;
327339 }
336348
337349 return _d_p2l( $self->mv(0,-1)->dog, $p1->mv(0,-1)->dog, $p2->mv(0,-1)->dog );
338350 }
339
340
341
342
351 #line 466 "kmeans.pd"
352 #line 354 "Kmeans.pm"
353
354
355
356 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
343357 *_d_p2l = \&PDL::_d_p2l;
344
345
346
347
348 #line 495 "Kmeans/kmeans.pd"
358 #line 360 "Kmeans.pm"
359
360
361
362 #line 495 "kmeans.pd"
363
364 #line 495 "kmeans.pd"
349365
350366 =head2 kmeans
351367
709725 All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution.
710726
711727 =cut
712
713
714 ;
728 #line 860 "kmeans.pd"
729 #line 731 "Kmeans.pm"
730
731
732
715733
716734
717735
22 #
33 package PDL::Stats::TS;
44
5 our @EXPORT_OK = qw(PDL::PP _acf PDL::PP _acvf PDL::PP diff PDL::PP inte PDL::PP dseason PDL::PP _fill_ma PDL::PP filter_exp PDL::PP filter_ma PDL::PP mae PDL::PP mape PDL::PP wmape PDL::PP portmanteau PDL::PP _pred_ar );
5 our @EXPORT_OK = qw(_acf _acvf diff inte dseason _fill_ma filter_exp filter_ma mae mape wmape portmanteau _pred_ar );
66 our %EXPORT_TAGS = (Func=>\@EXPORT_OK);
77
88 use PDL::Core;
1818
1919
2020
21
22
23 #line 2 "ts.pd"
2124
2225 =encoding utf8
2326
4851 use PDL::Stats::Kmeans;
4952
5053 my $DEV = ($^O =~ /win/i)? '/png' : '/xs';
51
54 #line 56 "TS.pm"
5255
5356
5457
6265
6366
6467
65
68 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
6669 *_acf = \&PDL::_acf;
67
68
69
70
71
70 #line 72 "TS.pm"
71
72
73
74 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
7275 *_acvf = \&PDL::_acvf;
73
74
75
76
77 #line 113 "TS/ts.pd"
76 #line 78 "TS.pm"
77
78
79
80 #line 113 "ts.pd"
81
82 #line 113 "ts.pd"
7883
7984 =head2 acf
8085
144149 $h ||= $self->dim(0) - 1;
145150 return $self->_acvf($h+1);
146151 }
147
148
152 #line 184 "ts.pd"
153 #line 155 "TS.pm"
154
155
156
157 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
149158
150159
151160 =head2 diff
168177
169178
170179 =cut
171
172
173
174
175
176
180 #line 182 "TS.pm"
181
182
183
184 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
177185 *diff = \&PDL::diff;
178
179
180
186 #line 188 "TS.pm"
187
188
189
190 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
181191
182192
183193 =head2 inte
200210
201211
202212 =cut
203
204
205
206
207
208
213 #line 215 "TS.pm"
214
215
216
217 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
209218 *inte = \&PDL::inte;
210
211
212
219 #line 221 "TS.pm"
220
221
222
223 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
213224
214225
215226 =head2 dseason
233244
234245
235246 =cut
236
237
238
239
240
241
247 #line 249 "TS.pm"
248
249
250
251 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
242252 *dseason = \&PDL::dseason;
243
244
245
246
247 #line 363 "TS/ts.pd"
253 #line 255 "TS.pm"
254
255
256
257 #line 363 "ts.pd"
258
259 #line 363 "ts.pd"
248260
249261 =head2 fill_ma
250262
276288
277289 return $x_filled;
278290 }
279
280
281
282
291 #line 396 "ts.pd"
292 #line 294 "TS.pm"
293
294
295
296 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
283297 *_fill_ma = \&PDL::_fill_ma;
284
285
286
298 #line 300 "TS.pm"
299
300
301
302 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
287303
288304
289305 =head2 filter_exp
309325
310326
311327 =cut
312
313
314
315
316
317
328 #line 330 "TS.pm"
329
330
331
332 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
318333 *filter_exp = \&PDL::filter_exp;
319
320
321
334 #line 336 "TS.pm"
335
336
337
338 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
322339
323340
324341 =head2 filter_ma
342359
343360
344361 =cut
345
346
347
348
349
350
362 #line 364 "TS.pm"
363
364
365
366 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
351367 *filter_ma = \&PDL::filter_ma;
352
353
354
368 #line 370 "TS.pm"
369
370
371
372 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
355373
356374
357375 =head2 mae
381399
382400
383401 =cut
384
385
386
387
388
389
402 #line 404 "TS.pm"
403
404
405
406 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
390407 *mae = \&PDL::mae;
391
392
393
408 #line 410 "TS.pm"
409
410
411
412 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
394413
395414
396415 =head2 mape
420439
421440
422441 =cut
423
424
425
426
427
428
442 #line 444 "TS.pm"
443
444
445
446 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
429447 *mape = \&PDL::mape;
430
431
432
448 #line 450 "TS.pm"
449
450
451
452 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
433453
434454
435455 =head2 wmape
459479
460480
461481 =cut
462
463
464
465
466
467
482 #line 484 "TS.pm"
483
484
485
486 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
468487 *wmape = \&PDL::wmape;
469
470
471
488 #line 490 "TS.pm"
489
490
491
492 #line 1059 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
472493
473494
474495 =head2 portmanteau
510531
511532
512533 =cut
513
514
515
516
517
518
534 #line 536 "TS.pm"
535
536
537
538 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
519539 *portmanteau = \&PDL::portmanteau;
520
521
522
523
524 #line 701 "TS/ts.pd"
540 #line 542 "TS.pm"
541
542
543
544 #line 701 "ts.pd"
545
546 #line 701 "ts.pd"
525547
526548 =head2 pred_ar
527549
578600 return $x->append($ext($b->dim(0) : -1));
579601 }
580602 }
581
582
583
584
603 #line 759 "ts.pd"
604 #line 606 "TS.pm"
605
606
607
608 #line 1061 "/home/osboxes/.perlbrew/libs/perl-5.32.0@normal/lib/perl5/x86_64-linux/PDL/PP.pm"
585609 *_pred_ar = \&PDL::_pred_ar;
586
587
588
589
590 #line 791 "TS/ts.pd"
610 #line 612 "TS.pm"
611
612
613
614 #line 791 "ts.pd"
615
616 #line 791 "ts.pd"
591617
592618 =head2 season_m
593619
813839 All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution.
814840
815841 =cut
816
817
818 ;
842 #line 1018 "ts.pd"
843 #line 845 "TS.pm"
844
845
846
819847
820848
821849
442442 croak "1D pdl only please";
443443
444444 my $a = zeroes 2, $self->nelem;
445 ($_tmp = $a((0), )) .= sequence $self->nelem;
446 ($_tmp = $a((1), )) .= $self;
447
448 my $d = _d_point2line( $a, $a( ,(0)), $a( ,(-1)) );
445 ($_tmp = $a->slice('(0)')) .= sequence $self->nelem;
446 ($_tmp = $a->slice('(1)')) .= $self;
447
448 my $d = _d_point2line( $a, $a->slice(':,(0)'), $a->slice(':,(-1)') );
449449
450450 return $d->maximum_ind;
451451 }
5858 "web" : "https://github.com/PDLPorters/PDL-Stats"
5959 }
6060 },
61 "version" : "0.80",
61 "version" : "0.81",
6262 "x_serialization_backend" : "JSON::PP version 4.04"
6363 }
2424 PDL: '2.057'
2525 resources:
2626 repository: git://github.com/PDLPorters/PDL-Stats
27 version: '0.80'
27 version: '0.81'
2828 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
22 use strict;
33 use warnings;
44
5 our $VERSION = '0.80';
5 our $VERSION = '0.81';
66
77 sub import {
88 my $pkg = (caller())[0];