AI-NeuralNet-Kohonen-Visual
view release on metacpan or search on metacpan
lib/AI/NeuralNet/Kohonen/Visual.pm view on Meta::CPAN
=head1 CONSTRUCTOR (new)
The following paramter fields are added to the base module's fields:
=over 4
=item display
Set to C<hex> for display as a unified distance matrix, rather than
as the default plain grid;
=item display_scale
Set with a factor to effect the size of the display.
=item show_bmu
Show the current BMU during training.
=item show_training
lib/AI/NeuralNet/Kohonen/Visual.pm view on Meta::CPAN
=item MainLoop
Calls TK's C<MainLoop> at the end of training.
=item missing_colour
When selecting a colour using L<METHOD get_colour_for>,
every node weight holding the value of C<missing_mask>
will be given the value of this paramter. If this paramter
is not defined, the default is 0.
=back
=cut
use strict;
use warnings;
use Carp qw/cluck carp confess croak/;
use base "AI::NeuralNet::Kohonen";
lib/AI/NeuralNet/Kohonen/Visual.pm view on Meta::CPAN
=head1 METHOD plot_map
Plots the map on the existing canvas. Arguments are supplied
in a hash with the following keys as options:
The values of C<bmu_x> and C<bmu_y> represent The I<x> and I<y>
co-ordinates of unit to highlight using the value in the
C<hicol> to highlight it with colour. If no C<hicolo> is provided,
it default to red.
When called, this method also sets the object field flag C<plotted>:
currently, this prevents C<main_loop> from calling this routine.
See also L<METHOD get_colour_for>.
=cut
sub plot_map { my ($self,$args) = (shift,{@_});
$self->{plotted} = 1;
( run in 0.671 second using v1.01-cache-2.11-cpan-0a6323c29d9 )