libfgen  0.1.15
Library for optimization using a genetic algorithm or particle swarm optimization
random.h
00001 /*
00002     random.h -- prototypes of functions defined in random.c.
00003 
00004     fgen -- Library for optimization using a genetic algorithm or particle swarm optimization.
00005     Copyright 2012, Harm Hanemaaijer
00006 
00007     This file is part of fgen.
00008 
00009     fgen is free software: you can redistribute it and/or modify it
00010     under the terms of the GNU Lesser General Public License as published
00011     by the Free Software Foundation, either version 3 of the License, or
00012     (at your option) any later version.
00013 
00014     fgen is distributed in the hope that it will be useful, but WITHOUT
00015     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00016     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00017     License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public
00020     License along with fgen.  If not, see <http://www.gnu.org/licenses/>.
00021 
00022 */
00023 
00024 
00025 /* Inform the RandomN routine that n will be a common parameter, so that */
00026 /* this case can be handled more efficiently. */
00027 
00028 extern void RandomInformCommonRange( int n );
00029 
00030 /* Calculate a random permutation of the numbers 0 to (n - 1). */
00031 
00032 extern void CalculateRandomOrder(FgenRNG *rng, int *order, int n);
00033 
00034 
 All Data Structures Functions Variables