org.knime.base.util.math
Interface Combinations.Callback
- Enclosing class:
- Combinations
public static interface Combinations.Callback
Callback interface used by the various visit methods.
- Author:
- Thorsten Meinl, University of Konstanz
Method Summary |
boolean |
visit(int[] selected,
int n,
int k,
long index,
long max)
This method is called with one particular combination of k
selected numbers (from 0 to n - 1) in the array
selected. |
visit
boolean visit(int[] selected,
int n,
int k,
long index,
long max)
- This method is called with one particular combination of k
selected numbers (from 0 to n - 1) in the array
selected.
- Parameters:
selected
- an array with the selected elementsn
- the number of total elementsk
- the number of selected elementsindex
- the unique index of the current combinationmax
- the maximum number of combinations
- Returns:
true
if the enumeration should continue,
false
otherwise
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.