Sautrela

edu.gtts.sautrela.wfsa
Class EntropyEstimator

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.wfsa.EntropyEstimator
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class EntropyEstimator
extends AbstractDataProcessor

Author:
mpenagar
See Also:
Serialized Form

Nested Class Summary
static class EntropyEstimator.TargetType
           
 
Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
EntropyEstimator()
           
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 EntropyEstimator.TargetType getTargetType()
          Getter for property targetType.
 java.net.URL getTargetURL()
          Getter for property targetURL.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Obtains the total logProb of input Data Streams.
 void setTargetType(EntropyEstimator.TargetType type)
          Setter for property targetType.
 void setTargetURL(java.net.URL url)
          Setter for property targetURL.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntropyEstimator

public EntropyEstimator()
Method Detail

getTargetURL

public java.net.URL getTargetURL()
Getter for property targetURL.

Returns:
Value of property targetURL.

setTargetURL

public void setTargetURL(java.net.URL url)
Setter for property targetURL.

Parameters:
url - New value of property targetURL.

getTargetType

public EntropyEstimator.TargetType getTargetType()
Getter for property targetType.

Returns:
Value of property targetType.

setTargetType

public void setTargetType(EntropyEstimator.TargetType type)
Setter for property targetType.

Parameters:
type - New value of property targetType.

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Obtains the total logProb of input Data Streams.
CAUTION: each input data is supposed to represent a single symbol, so arrays are treated as single symbols too.

Parameters:
in - Input Buffer
out - Output Buffer
Throws:
DataProcessorException

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela