public class Statistics
extends java.lang.Object
Constructor and Description |
---|
Statistics() |
Statistics(int nodes,
int atts,
int namespaces,
int chars) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageAttributes() |
double |
getAverageCharacters() |
double |
getAverageNamespaces() |
double |
getAverageNodes() |
java.lang.String |
toString() |
void |
updateStatistics(int numberOfNodes,
int numberOfAttributes,
int numberOfNamespaces,
int chars)
Update the statistics held in static data.
|
public Statistics()
public Statistics(int nodes, int atts, int namespaces, int chars)
public double getAverageNodes()
public double getAverageAttributes()
public double getAverageNamespaces()
public double getAverageCharacters()
public void updateStatistics(int numberOfNodes, int numberOfAttributes, int numberOfNamespaces, int chars)
numberOfNodes
- the number of (non-attribute, non-namespace) nodesnumberOfAttributes
- the number of attribute nodesnumberOfNamespaces
- the number of namespace bindings (deltas on namespace nodes)chars
- the number of characters in text nodespublic java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.