RecombiningTrinomialTree extends RecombiningTree<T> { @Override protected int getMaxNodesForStep(final int step) { return NODES.evaluate(step); } RecombiningTrinomialTree(final T[][] data);  static final Function1D<Integer, Integer> NODES; }
@Test public void test() { final RecombiningTrinomialTree<Double> other = new RecombiningTrinomialTree<>(DATA); assertEquals(TREE, other); for (int i = 0; i < DATA.length; i++) { assertEquals(DATA[i].length, TREE.getMaxNodesForStep(i)); } }