forked from Lainports/freebsd-ports
Yagi-Uda antennas, with 2 or more elements, such as shown below. Additionally, a very simple program called dipole works with just a dipole, but its functionality is limited. PR: ports/83737 Submitted by: Diane Bruce <db@db.net>
22 lines
526 B
C
22 lines
526 B
C
--- src/genetic_algorithm_lib.c.orig Tue Jul 19 12:25:24 2005
|
|
+++ src/genetic_algorithm_lib.c Tue Jul 19 12:35:51 2005
|
|
@@ -3,9 +3,8 @@
|
|
#endif
|
|
#include <string.h>
|
|
|
|
-#include <values.h>
|
|
-#include <math.h>
|
|
#include <sys/types.h>
|
|
+#include <math.h>
|
|
#include <errno.h>
|
|
#include "yagi.h"
|
|
|
|
@@ -245,7 +244,7 @@
|
|
GeneRecord *temp ;
|
|
double minfit,maxfit ;
|
|
sigma=0.0 ;
|
|
- minfit=MAXDOUBLE ;
|
|
+ minfit=MAXFLOAT;
|
|
maxfit=-minfit ;
|
|
/* minfit=1e308; maxfit=-1e308; XXXXXXXXXXXXXXXXXXXXXX */
|
|
for(a=0 ; a<population_size ; a++ )
|