Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
Math /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
data.mat
186
B
-rw-r--r--
ex_math_matrix.php
3.27
KB
-rw-r--r--
ex_stats_cummulative_data.php
2.32
KB
-rw-r--r--
ex_stats_simple.php
2.17
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ex_stats_cummulative_data.php
<?php // // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Jesus M. Castagnetto <jmcastagnetto@php.net> | // +----------------------------------------------------------------------+ // // $Id: ex_stats_cummulative_data.php,v 1.3 2003/01/04 11:55:39 mj Exp $ // /** * @package Math_Stats */ require_once "Math/Stats.php"; // making some cummulative data sets $data = array("3"=>4, "2.333"=>5, "1.22"=>6, "0.5"=>3, "0.9"=>2, "2.4"=>7); $dnulls = array("3"=>4, "caca"=>2, "bar is not foo"=>6, "0.5"=>3, "0.9"=>2, "2.4"=>7); // instantiate a Math_Stats object $s = new Math_Stats(); $s->setData($data, STATS_DATA_CUMMULATIVE); echo "*** Original cummulative data set\n"; print_r($data); // let's print some simple statistics echo "Simple stats from cummulative data, note the count\n"; print_r($s->calcBasic()); // now, lets generate an error by using the $dnulls array echo "\n*** Another cummulative data set\n"; print_r($dnulls); echo "Generating an error by using data with nulls\n"; print_r($s->setData($dnulls, STATS_DATA_CUMMULATIVE)); // let's ignore nulls echo "Ignoring the nulls and trying again\n"; $s->setNullOption(STATS_IGNORE_NULL); $s->setData($dnulls, STATS_DATA_CUMMULATIVE); print_r($s->calcBasic()); // let's assume null == zero echo "Assuming that nulls are zero\n"; $s->setNullOption(STATS_USE_NULL_AS_ZERO); $s->setData($dnulls, STATS_DATA_CUMMULATIVE); print_r($s->calcFull()); ?>
Close