Statistics::Basic::_TwoVectorBase(3pm) | User Contributed Perl Documentation | Statistics::Basic::_TwoVectorBase(3pm) |
Statistics::Basic::_TwoVectorBase - base class objects like Correlation
# insert a 4 in one vector and a 3 in the other $object_instance->insert( 4, 3 );
# append a 4 in one vector and a 3 in the other $object_instance->ginsert( 4, 3 );
my @s = $obj->query_size; # two values my $s = $obj->query_size; # the right hand value of the list
my $v1 = vector my $v2 = $v1->copy; $example_correlation->set_vector($v1, $v2);
This class provides overloads. If evaluated as a string, it will attempt to print a pretty value for the object (or "n/a", see "query()" above). the resulting string can be tuned, in terms of precision, see ipres for further information.
If evaluated as a number, it will try to return the raw result of "query()", possibly turning the resulting "undef" (if applicable) into a 0 in the process -- note that Perl does this 0-izing, not the overload.
The "eq" and "==" operators are also overloaded, trying to do the right thing. Also see toler for further information.
Paul Miller "<jettero@cpan.org>"
Copyright 2012 Paul Miller -- Licensed under the LGPL
perl(1), Statistics::Basic, Statistics::Basic::Vector
2022-11-19 | perl v5.36.0 |