jas.hist.normalization
Class StatisticsNormalizer

java.lang.Object
  extended by java.util.Observable
      extended by jas.hist.normalization.SimpleNormalizer
          extended by jas.hist.normalization.DataSourceNormalizer
              extended by jas.hist.normalization.StatisticsNormalizer
All Implemented Interfaces:
Normalizer, Observer
Direct Known Subclasses:
EntriesNormalizer

public class StatisticsNormalizer
extends DataSourceNormalizer

A normalizer that calculates a normalization factor based on a specific statistics entry

Version:
$Id: StatisticsNormalizer.java 13351 2007-09-21 18:46:46Z serbo $
Author:
tonyj

Field Summary
 
Fields inherited from class jas.hist.normalization.DataSourceNormalizer
hurry, source
 
Constructor Summary
StatisticsNormalizer(DataSource source, String statsName)
          Creates new StatisticsNormalizer
 
Method Summary
protected  double calculateNormalization()
          Calculates the normalization factor.
 
Methods inherited from class jas.hist.normalization.DataSourceNormalizer
getNormalizationFactor, init, update
 
Methods inherited from class jas.hist.normalization.SimpleNormalizer
normalizationChanged, setFactor
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsNormalizer

public StatisticsNormalizer(DataSource source,
                            String statsName)
Creates new StatisticsNormalizer

Parameters:
source - The data source
statsName - The name of the statistic
Method Detail

calculateNormalization

protected double calculateNormalization()
Description copied from class: DataSourceNormalizer
Calculates the normalization factor.

Specified by:
calculateNormalization in class DataSourceNormalizer
Returns:
The normalization factor.


Copyright © 2000-2009 FreeHEP. All Rights Reserved.