1Statistics::Basic::_OneUVseecrtoCroBnatsrei(b3u)ted PerlStDaotciusmteinctsa:t:iBoansic::_OneVectorBase(3)
2
3
4

NAME

6       Statistics::Basic::_OneVectorBase - base class objects like Mean
7

METHODS

9       query()
10           Query the value of the object.  It will return the undefined value
11           until there's something to calculate (or until the vector is full
12           when nofill is in effect).
13
14       insert()
15           Insert new values into the vector.
16
17               $object_instance->insert( 4, 3 ); # insert a 3 and a 4
18
19           This function returns the object itself, for chaining purposes.
20
21       append() ginsert()
22           The growing insert inserts new elements, growing the max size of
23           the vector to accommodate the new elements (if necessary).
24
25               $object_instance->ginsert( 4, 3 ); # append a 3 and a 4
26
27           This function returns the object itself, for chaining purposes.
28
29       query_size()
30           The current size of the vector -- regardless of its max size (as
31           set by "set_size()").
32
33       query_vector()
34           Returns the Statistics::Basic::Vector object used by the
35           computational object.
36
37       set_size()
38           Set the maximum size for the underlying Statistics::Basic::Vector
39           object.  This function requires one arguments.
40
41           Unless nofill is set, the vector will be filled with 0s (assuming
42           the vector wouldn't otherwise be full) on the oldest side of the
43           vector (so an insert will push off one of the filled-zeros).
44
45           This function returns the object itself, for chaining purposes.
46
47       set_vector()
48           Given a vector or array ref, this will set the contents (and size)
49           of the vector used for the object computations.
50
51           This function returns the object itself, for chaining purposes.
52

OVERLOADS

54       This class provides overloads.  If evaluated as a string, it will
55       attempt to print a pretty value for the object (or "n/a", see "query()"
56       above).  the resulting string can be tuned, in terms of precision, see
57       ipres for further information.
58
59       If evaluated as a number, it will try to return the raw result of
60       "query()", possibly turning the resulting "undef" (if applicable) into
61       a 0 in the process -- note that Perl does this 0-izing, not the
62       overload.
63
64       The "eq" and "==" operators are also overloaded, trying to do the right
65       thing.  Also see toler for further information.
66

AUTHOR

68       Paul Miller "<jettero@cpan.org>"
69
71       Copyright 2012 Paul Miller -- Licensed under the LGPL
72

SEE ALSO

74       perl(1), Statistics::Basic, Statistics::Basic::Vector
75
76
77
78perl v5.38.0                      2023-07-2S1tatistics::Basic::_OneVectorBase(3)
Impressum