~ubuntu-branches/ubuntu/vivid/elki/vivid

« back to all changes in this revision

Viewing changes to src/de/lmu/ifi/dbs/elki/datasource/filter/normalization/AbstractNormalization.java

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2012-12-14 20:45:15 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121214204515-4m0d0er9ivtu5w9d
Tags: 0.5.5-1
New upstream release: 0.5.5 interim release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
24
 */
25
25
 
 
26
import de.lmu.ifi.dbs.elki.data.NumberVector;
26
27
import de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation;
27
28
import de.lmu.ifi.dbs.elki.datasource.bundle.MultipleObjectsBundle;
28
 
import de.lmu.ifi.dbs.elki.datasource.filter.AbstractConversionFilter;
 
29
import de.lmu.ifi.dbs.elki.datasource.filter.AbstractVectorConversionFilter;
29
30
import de.lmu.ifi.dbs.elki.math.linearalgebra.LinearEquationSystem;
30
31
 
31
32
/**
35
36
 * 
36
37
 * @param <O> Object type processed
37
38
 */
38
 
public abstract class AbstractNormalization<O> extends AbstractConversionFilter<O, O> implements Normalization<O> {
 
39
public abstract class AbstractNormalization<O extends NumberVector<?>> extends AbstractVectorConversionFilter<O, O> implements Normalization<O> {
39
40
  /**
40
41
   * Initializes the option handler and the parameter map.
41
42
   */
45
46
 
46
47
  @Override
47
48
  protected SimpleTypeInformation<? super O> convertedType(SimpleTypeInformation<O> in) {
 
49
    initializeOutputType(in);
48
50
    return in;
49
51
  }
50
52
 
51
53
  @Override
52
 
  public MultipleObjectsBundle normalizeObjects(MultipleObjectsBundle objects) throws NonNumericFeaturesException {
 
54
  public MultipleObjectsBundle normalizeObjects(MultipleObjectsBundle objects) {
53
55
    return super.filter(objects);
54
56
  }
55
57
 
61
63
 
62
64
  @Override
63
65
  public String toString() {
64
 
    StringBuffer result = new StringBuffer();
65
 
    result.append("normalization class: ").append(getClass().getName());
66
 
    return result.toString();
 
66
    return getClass().getName();
67
67
  }
68
68
}
 
 
b'\\ No newline at end of file'