Class WekaGeneticHelper


  • public class WekaGeneticHelper
    extends adams.core.discovery.genetic.GeneticHelper
    Helper for Weka classes.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static weka.core.matrix.Matrix bitsToMatrix​(String bits, double min, double max, int numBits, int splits, int rows, int columns)
      Convert bit string into weka Matrix
      static String matrixToBits​(weka.core.matrix.Matrix ina, double min, double max, int numBits, int splits, int rows, int columns)
      Convert weka Matrix into bit string
      • Methods inherited from class adams.core.discovery.genetic.GeneticHelper

        bitsToDouble, bitsToFloat, bitsToInt, bitsToIntArray, doubleToBits, floatToBits, intArrayToBits, intToBits
    • Constructor Detail

      • WekaGeneticHelper

        public WekaGeneticHelper()
    • Method Detail

      • matrixToBits

        public static String matrixToBits​(weka.core.matrix.Matrix ina,
                                          double min,
                                          double max,
                                          int numBits,
                                          int splits,
                                          int rows,
                                          int columns)
        Convert weka Matrix into bit string
        Parameters:
        ina -
        min -
        max -
        numBits -
        splits -
        rows -
        columns -
        Returns:
      • bitsToMatrix

        public static weka.core.matrix.Matrix bitsToMatrix​(String bits,
                                                           double min,
                                                           double max,
                                                           int numBits,
                                                           int splits,
                                                           int rows,
                                                           int columns)
        Convert bit string into weka Matrix
        Parameters:
        bits -
        min -
        max -
        numBits -
        splits -
        rows -
        columns -
        Returns: