com.rapidminer.example.set
Class AttributeTransformationWeighting

java.lang.Object
  extended by com.rapidminer.example.set.AttributeTransformationWeighting
All Implemented Interfaces:
AttributeTransformation

public class AttributeTransformationWeighting
extends java.lang.Object
implements AttributeTransformation

This transformation simply returns the weight-scaled value. It must only be used by AttributeWeightedExampleSet since this class takes care of reassigning attributeWeights after clone.

Author:
Ingo Mierswa

Constructor Summary
AttributeTransformationWeighting(AttributeTransformationWeighting other)
          Clone constructor.
AttributeTransformationWeighting(AttributeWeights attributeWeights)
           
 
Method Summary
 java.lang.Object clone()
           
 double inverseTransform(Attribute attribute, double value)
           
 boolean isReversable()
           
 void setAttributeWeights(AttributeWeights weights)
           
 double transform(Attribute attribute, double value)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTransformationWeighting

public AttributeTransformationWeighting(AttributeWeights attributeWeights)

AttributeTransformationWeighting

public AttributeTransformationWeighting(AttributeTransformationWeighting other)
Clone constructor.

Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in interface AttributeTransformation
Overrides:
clone in class java.lang.Object

setAttributeWeights

public void setAttributeWeights(AttributeWeights weights)

inverseTransform

public double inverseTransform(Attribute attribute,
                               double value)
Specified by:
inverseTransform in interface AttributeTransformation

isReversable

public boolean isReversable()
Specified by:
isReversable in interface AttributeTransformation

transform

public double transform(Attribute attribute,
                        double value)
Specified by:
transform in interface AttributeTransformation


Copyright © 2001-2009 by Rapid-I