FreeHEP API
Version current

hep.aida.util.comparison
Class ComparisonData

java.lang.Object
  extended byhep.aida.util.comparison.ComparisonData
All Implemented Interfaces:
IComparisonData

public class ComparisonData
extends Object
implements IComparisonData

Author:
The FreeHEP team @ SLAC.
Source Code:
ComparisonData.java

Field Summary
 
Fields inherited from interface hep.aida.ext.IComparisonData
BINNED_DATA, UNBINNED_DATA
 
Constructor Summary
ComparisonData(double[] data, double[] weight, int type)
           
ComparisonData(double[] data, double[] weight, int[] entries, int type)
           
 
Method Summary
 int entries(int i)
          Get the ith number of entries.
 int nPoints()
          Get the number of points.
 int type()
          Get the data Type: binned or unbinned.
 double value(int i)
          Get the ith value.
 double weight(int i)
          Get the ith weight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonData

public ComparisonData(double[] data,
                      double[] weight,
                      int type)

ComparisonData

public ComparisonData(double[] data,
                      double[] weight,
                      int[] entries,
                      int type)
Method Detail

nPoints

public int nPoints()
Description copied from interface: IComparisonData
Get the number of points.

Specified by:
nPoints in interface IComparisonData

type

public int type()
Description copied from interface: IComparisonData
Get the data Type: binned or unbinned.

Specified by:
type in interface IComparisonData

value

public double value(int i)
Description copied from interface: IComparisonData
Get the ith value.

Specified by:
value in interface IComparisonData

weight

public double weight(int i)
Description copied from interface: IComparisonData
Get the ith weight.

Specified by:
weight in interface IComparisonData

entries

public int entries(int i)
Description copied from interface: IComparisonData
Get the ith number of entries.

Specified by:
entries in interface IComparisonData

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.