Package org.encog.ml.data.versatile.normalizers

Examples of org.encog.ml.data.versatile.normalizers.Normalizer


   * @param colDef The column definition.
   * @param isInput True if the column is input.
   * @return The normalizer to use.
   */
  private Normalizer findNormalizer(ColumnDefinition colDef, boolean isInput) {
    Normalizer norm = null;
   
    if(isInput) {
      if( this.inputNormalizers.containsKey(colDef.getDataType())) {
        norm = this.inputNormalizers.get(colDef.getDataType());
      }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  @Override
  public int normalizedSize(ColumnDefinition colDef, boolean isInput) {
    Normalizer norm = findNormalizer(colDef,isInput);
    return norm.outputSize(colDef);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public int normalizeColumn(ColumnDefinition colDef, boolean isInput,
      String value, double[] outputData, int outputColumn) {
    Normalizer norm = findNormalizer(colDef,isInput);
    return norm.normalizeColumn(colDef,value,outputData,outputColumn);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public int normalizeColumn(ColumnDefinition colDef, boolean isInput,
      double value, double[] outputData, int outputColumn) {
    Normalizer norm = findNormalizer(colDef,isInput);
    return norm.normalizeColumn(colDef,value,outputData,outputColumn);
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  public String denormalizeColumn(ColumnDefinition colDef, boolean isInput,
      MLData data, int dataColumn) {
    Normalizer norm = findNormalizer(colDef,isInput);
    return norm.denormalizeColumn(colDef,data,dataColumn);
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.data.versatile.normalizers.Normalizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.