Source for file example3.php
Documentation is available at example3.php
* This example makes use of
* XML_Statistics in conjunction with
* Math_Stats to calculate average occurences
* and other mathematical statistics
* of all tags in the documents
require_once 'XML/Statistics.php';
require_once 'Math/Stats.php';
$result = $stat->analyzeFile ("example.xml");
if ($stat->isError ($result)) {
die ("Error: " . $result->getMessage ());
// get number of tags per tagname
$tags = $stat->getTagOccurences ();
$stats = $s->calcBasic ();
Documentation generated on Mon, 11 Mar 2019 15:39:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|