Class WekaGeneticHelper


  • public class WekaGeneticHelper
    extends GeneticHelper
    Helper for Weka classes.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • 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: