in reply to Re: reference to self function
in thread reference to self function
The w function gets called quite a few times, so I don't want a per-call check.sub w { my($self, $a, $i) = @_; if($self->{method} eq 'correlation') { return $self->correlation($a, $i); } if($self->{method} eq 'vector_similarity') { return $self->vector_similarity($a, $i); } if($self->{method} eq 'IUF') { return $self->IUF($a, $i); } if($self->{method} eq 'MSD') { return $self->MSD($a, $i); } }
Thanks for the tip on constructors; that's a good point.
dan
|
|---|