/*******************************************************************************
 * DIANNE  - Framework for distributed artificial neural networks
 * Copyright (C) 2015  iMinds - IBCN - UGent
 *
 * This file is part of DIANNE.
 *
 * DIANNE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contributors:
 *     Tim Verbelen, Steven Bohez
 *******************************************************************************/
package be.iminds.iot.dianne.api.nn.learn;

/**
 * Strategy to select a next index to visit in the learning procedure.
 * 
 * @author tverbele
 *
 */
public interface SamplingStrategy {

	/**
	 * @return next index of the dataset to visit
	 */
	int next();
}

@@ -1277,10 +1277,262 @@
 next();%0A
+%09%0A%09/**%0A%09 * @param count number of indices to generate%0A%09 * @return count indices of the dataset to visit%0A%09 */%0A%09default int%5B%5D next(int count)%7B%0A%09%09int%5B%5D indices = new int%5Bcount%5D;%0A%09%09for(int i=0;i%3Ccount;i++)%7B%0A%09%09%09indices%5Bi%5D = next();%0A%09%09%7D%0A%09%09return indices;%0A%09%7D%0A
 %7D%0A

add next(int count) method to fetch batch sampling indices