org.codehaus.jet.hypothesis.rejection.estimators
Class DefaultEstimatorProvider

java.lang.Object
  extended by org.codehaus.jet.hypothesis.rejection.estimators.DefaultEstimatorProvider
All Implemented Interfaces:
RejectionValueEstimatorProvider

public class DefaultEstimatorProvider
extends java.lang.Object
implements RejectionValueEstimatorProvider

Default implementation of RejectionValueEstimatorProvider. Uses simple caching via Maps.

Author:
Mauro Talevi

Constructor Summary
DefaultEstimatorProvider()
          Creates a DefaultEstimatorProvider with default estimator caches
DefaultEstimatorProvider(java.util.Map<java.lang.String,RejectionValueEstimator> criticalValueEstimators, java.util.Map<java.lang.String,RejectionValueEstimator> pValueEstimators)
          Creates a DefaultEstimatorProvider with given estimator caches
 
Method Summary
 RejectionValueEstimator getEstimator(RejectionValueType type, java.lang.String testName)
          Returns the estimator of a given type for a given test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEstimatorProvider

public DefaultEstimatorProvider()
Creates a DefaultEstimatorProvider with default estimator caches


DefaultEstimatorProvider

public DefaultEstimatorProvider(java.util.Map<java.lang.String,RejectionValueEstimator> criticalValueEstimators,
                                java.util.Map<java.lang.String,RejectionValueEstimator> pValueEstimators)
Creates a DefaultEstimatorProvider with given estimator caches

Parameters:
criticalValueEstimators - the cache of CriticalValuesEstimators
pValueEstimators - the cache of PValueEstimators
Method Detail

getEstimator

public RejectionValueEstimator getEstimator(RejectionValueType type,
                                            java.lang.String testName)
Description copied from interface: RejectionValueEstimatorProvider
Returns the estimator of a given type for a given test

Specified by:
getEstimator in interface RejectionValueEstimatorProvider
Parameters:
type - the rejection value type
testName - the test name
Returns:
A RejectionValueEstimator


Copyright © 2006-2007. All Rights Reserved.