Class StraightDifferencer


  • public class StraightDifferencer
    extends ValueDifferencer
    Determines the difference in value between the most recent move and how it was before in the up/down or left right direction.
    • Method Detail

      • findValueDifference

        public int findValueDifference​(int row,
                                       int col,
                                       com.barrybecker4.optimization.parameter.ParameterArray weights)
        Specified by:
        findValueDifference in class ValueDifferencer
        Returns:
        the difference in worth after making a move compared with before.