com.rapidminer.operator.annotation
Class ExampleSetResourceConsumptionEstimator

java.lang.Object
  extended by com.rapidminer.operator.annotation.ExampleSetResourceConsumptionEstimator
All Implemented Interfaces:
ResourceConsumptionEstimator
Direct Known Subclasses:
PolynomialExampleSetResourceConsumptionEstimator

public abstract class ExampleSetResourceConsumptionEstimator
extends java.lang.Object
implements ResourceConsumptionEstimator

Computes resource consumption based on an example set taken from a given port.

Author:
Simon Fischer

Constructor Summary
ExampleSetResourceConsumptionEstimator(InputPort inputPort, AttributeSubsetSelector selector)
           
 
Method Summary
abstract  long estimateMemory(ExampleSetMetaData exampleSet)
           
 long estimateMemoryConsumption()
          Returns the estimated number of bytes required when executing this operator.
 long estimateRuntime()
          Returns the estimated number of CPU-cycles.
abstract  long estimateRuntime(ExampleSetMetaData exampleSet)
           
protected  ExampleSetMetaData getExampleSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.annotation.ResourceConsumptionEstimator
getCpuFunction, getMemoryFunction
 

Constructor Detail

ExampleSetResourceConsumptionEstimator

public ExampleSetResourceConsumptionEstimator(InputPort inputPort,
                                              AttributeSubsetSelector selector)
Method Detail

estimateMemory

public abstract long estimateMemory(ExampleSetMetaData exampleSet)

estimateRuntime

public abstract long estimateRuntime(ExampleSetMetaData exampleSet)

estimateMemoryConsumption

public long estimateMemoryConsumption()
Description copied from interface: ResourceConsumptionEstimator
Returns the estimated number of bytes required when executing this operator. If, for any reason, computation is impossible, -1 should be returned.

Specified by:
estimateMemoryConsumption in interface ResourceConsumptionEstimator

estimateRuntime

public long estimateRuntime()
Description copied from interface: ResourceConsumptionEstimator
Returns the estimated number of CPU-cycles. If, for any reason, computation is impossible, -1 should be returned.

Specified by:
estimateRuntime in interface ResourceConsumptionEstimator

getExampleSet

protected ExampleSetMetaData getExampleSet()


Copyright © 2001-2009 by Rapid-I