GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Algorithm::Evolutionary::Utils(3) User Contributed Perl Documentation Algorithm::Evolutionary::Utils(3)

Algorithm::Evolutionary::Utils - Container module with a hodgepodge of functions

  use Algorithm::Evolutionary::Utils qw(entropy genotypic_entropy hamming consensus average random_bitstring random_number_array decode_string vector_compare );

  my $this_entropy = entropy( $population );

  #Computes consensus sequence (for binary chromosomes
  my $this_consensus = consensus( $population);

Miscellaneous class that contains functions that might be useful somewhere else, especially when computing EA statistics.

Computes the entropy using the well known Shannon's formula: <http://en.wikipedia.org/wiki/Information_entropy> 'to avoid botching highlighting

Computes the entropy using the well known Shannon's formula: <http://en.wikipedia.org/wiki/Information_entropy> 'to avoid botching highlighting; in this case we use chromosome frequencies instead of fitness.

Computes the number of positions that are different among two strings, the well known Hamming distance.

Consensus sequence representing the majoritary value for each bit; returns the consensus binary string. If "rough", then the bit is set only if the difference is bigger than 0.4 (60/40 proportion).

Computes an average of population fitness

Returns a random bitstring with the stated number of bits. Useful for testing,mainly

Returns a random number array with the stated length. Useful for testing, mainly.

Parses the string and returns an XML tree

Decodes to a vector, each one of whose components ranges between $min and $max. Returns that vector.

It does not work for $gene_size too big. Certainly not for 64, maybe for 32.

Compares vectors, returns 1 if 1 dominates 2, -1 if it's the other way round, and 0 if neither dominates the other. Both vectors are supposed to be numeric. Returns "undef" if neither is bigger, and they are not equal. Fails if the length is not the same.

  This file is released under the GPL. See the LICENSE file included in this distribution,
  or go to http://www.fsf.org/licenses/gpl.txt
2014-10-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.