Algorithm-Evolutionary-Utils
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
YAML => 0
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
clean => { FILES => 'Algorithm-Evolutionary-*' }
);
#Add new targets
sub MY::postamble {
return <<'MAKE_FRAG';
docs:
pod2html --verbose --htmlroot .. --podpath=Evolutionary/Individual:Evolutionary/Op:Evolutionary --outfile index.html Evolutionary.pm; \
cd examples; for i in *.pl; do pod2html --verbose --htmlroot ../.. --podpath=../Evolutionary/Individual:../Evolutionary/Op:../Evolutionary --outfile $$i.html $$i; done ; \
cd ../Evolutionary; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../.. --podpath=Individual:Op --outfile $$base.html $$i; done ; \
for i in *.pod; do base=`basename $$i .pod`; echo $$base; pod2html --verbose --htmlroot ../.. --podpath=Individual:Op --outfile $$base.html $$i; done; \
cd Op; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../../.. --podroot .. --outfile $$base.html $$i; done ; \
cd ../Individual; for i in *.pm; do base=`basename $$i .pm`; echo $$base; pod2html --verbose --htmlroot ../../.. --podroot .. --outfile $$base.html $$i; done
$(DISTVNAME)-examples.tar$(SUFFIX) : distdir
$(PREOP)
$(TO_UNIX)
$(TAR) $(TARFLAGS) $(DISTVNAME)-examples.tar $(DISTVNAME)/examples
$(RM_RF) $(DISTVNAME)
$(COMPRESS) $(DISTVNAME)-examples.tar
$(POSTOP)
examplesdist : $(DISTVNAME)-examples.tar$(SUFFIX)
lib/Algorithm/Evolutionary/Utils.pm view on Meta::CPAN
use strict; #-*-CPerl-*-
use warnings;
use lib qw( ../../../lib );
=encoding utf8
=head1 NAME
Algorithm::Evolutionary::Utils - Collection of functions used in all kind of evolutionary algorithms..
=head1 SYNOPSIS
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 );
( run in 0.228 second using v1.01-cache-2.11-cpan-4d50c553e7e )