The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AI::ANN::Neuron - a neuron for an artificial neural network simulator

VERSION

version 0.002

METHODS

new

AI::ANN::Neuron->new( $neuronid, {$inputid => $weight, ...}, {$neuronid => $weight} )

Weights may be whatever the user chooses. Note that packages that use this one may place their own restructions. Neurons and inputs are assumed to be zero-indexed.

ready

$neuron->ready( [$input0, $input1, ...], {$neuronid => $neuronvalue, ...} )

All inputs must be provided or you're insane. Returns 1 if ready, 0 otherwise.

execute

$neuron->execute( [$input0, $input1, ...], {$neuronid => $neuronvalue, ...} )

All inputs must be provided or you're insane Returns raw value (linear potential)

get_inputs

$neuron->get_inputs()

Returns a hashref of the input values => weights

get_neurons

$neuron->get_neurons()

Returns a hashref of the neuron values => weights

AUTHOR

Dan Collins <DCOLLINS@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Dan Collins.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007