0 - Don't print move numbers. 1 - Print move numbers normally (1-200+) 2 - Print move numbers "modulo 100"; for example: 32-78 -> 32-78 102-177 -> 2-77 67-117 -> 67-117 142-213 -> 42-113
74757677787980
return interpolator.interpolate(value); } @Override public Range getDomain() { return new Range(0, 1.0); }
86878889909192
return sign * inverseInterpolator.interpolate(Math.abs(x)); } @Override public Range getDomain() { return new Range(-5.0, 5.0); }
54555657585960
} /** X axis domain */ @Override public Range getDomain() { return new Range(xValues.get(0), xValues.get(xValues.size()-1)); }
43444546474849
return getInterpolatedValue(value); } @Override public Range getDomain() { return new Range(xValues[0], xValues[xValues.length-1]); }
53545556575859
return Math.pow(base, value / scale); } @Override public Range getDomain() { return new Range(0, Double.MAX_VALUE); }
44454647484950
return (value - offset) / scale; } @Override public Range getDomain() { return new Range(Double.MIN_VALUE, Double.MAX_VALUE); }
4344454647484950
/** * Constructor. */ public ErrorFunction() { interpolator = new LinearInterpolator(ERROR_FUNCTION); inverseInterpolator = new LinearInterpolator(INVERSE_ERROR_FUNCTION); }
124125126127128129130131132133134
*/ protected boolean processToken(SGFToken token, MoveList moveList) { boolean found = false; if (token instanceof PlacementToken ) { Move move = createMoveFromToken( token ); GameContext.log(2, "creating move="+ move); moveList.add( move ); found = true; } else { GameContext.log(0, "ignoring token "+token.getClass().getName());
5354555657585960616263
} @Override public void update(GameController controller) { setPlayerLabel(controller.getCurrentPlayer()); Move lastMove = controller.getLastMove(); if (lastMove != null) { moveNumLabel_.setText( (controller.getPlayers().getNumPlayers() + 2) + " " ); } else { moveNumLabel_.setText( 1 + " " );
4445464748495051525354
*/ protected void restoreGame( SGFGame game ) { parseSGFGameInfo(game); MoveList moveSequence = new MoveList(); extractMoveList( game.getTree(), moveSequence ); GameContext.log( 1, "move sequence= " + moveSequence ); controller_.reset(); for (Move m : moveSequence) {