1Statistics::DescriptiveU:s:eSrmoCootnShtterarit:bi:usEttxeipdcosnP:ee:nrDtleisaDclor(ci3up)mteinvtea:t:iSomnoother::Exponential(3)
2
3
4

NAME

6       Statistics::Descriptive::Smoother::Exponential - Implement exponential
7       smoothing
8

VERSION

10       version 3.0800
11

SYNOPSIS

13         use Statistics::Descriptive::Smoother;
14         my $smoother = Statistics::Descriptive::Smoother->instantiate({
15                  method   => 'exponential',
16                  coeff    => 0.5,
17                  data     => [1, 2, 3, 4, 5],
18                  samples  => [110, 120, 130, 140, 150],
19           });
20         my @smoothed_data = $smoother->get_smoothed_data();
21

DESCRIPTION

23       This module implement the exponential smoothing algorithm to smooth the
24       trend of a series of statistical data.
25
26       This algorithm works well for unsmoothed data build with big number of
27       samples. If this is not the case you might consider using the "Weighted
28       Exponential" one.
29
30       The algorithm implements the following formula:
31
32       S(0) = X(0)
33
34       S(t) = C*S(t-1) + (1-C)*X(t)
35
36       where:
37
38       •  t = index in the series
39
40       •  S(t) = smoothed series value at position t
41
42       •  C = smoothing coefficient. Value in the [0;1] range. 0 means that
43          the series is not smoothed at all, while 1 the series is universally
44          equal to the initial unsmoothed value.
45
46       •  X(t) = unsmoothed series value at position t
47

METHODS

49       $stats->get_smoothed_data();
50            Returns a copy of the smoothed data array.
51

AUTHOR

53       Fabio Ponciroli
54
56       Copyright(c) 2012 by Fabio Ponciroli.
57

LICENSE

59       This file is licensed under the MIT/X11 License:
60       http://www.opensource.org/licenses/mit-license.php.
61
62       Permission is hereby granted, free of charge, to any person obtaining a
63       copy of this software and associated documentation files (the
64       "Software"), to deal in the Software without restriction, including
65       without limitation the rights to use, copy, modify, merge, publish,
66       distribute, sublicense, and/or sell copies of the Software, and to
67       permit persons to whom the Software is furnished to do so, subject to
68       the following conditions:
69
70       The above copyright notice and this permission notice shall be included
71       in all copies or substantial portions of the Software.
72
73       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
74       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
75       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
76       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
77       CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
78       TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
79       SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
80

SUPPORT

82   Websites
83       The following websites have more information about this module, and may
84       be of help to you. As always, in addition to those websites please use
85       your favorite search engine to discover more resources.
86
87       •   MetaCPAN
88
89           A modern, open-source CPAN search engine, useful to view POD in
90           HTML format.
91
92           <https://metacpan.org/release/Statistics-Descriptive>
93
94       •   RT: CPAN's Bug Tracker
95
96           The RT ( Request Tracker ) website is the default bug/issue
97           tracking system for CPAN.
98
99           <https://rt.cpan.org/Public/Dist/Display.html?Name=Statistics-Descriptive>
100
101       •   CPANTS
102
103           The CPANTS is a website that analyzes the Kwalitee ( code metrics )
104           of a distribution.
105
106           <http://cpants.cpanauthors.org/dist/Statistics-Descriptive>
107
108       •   CPAN Testers
109
110           The CPAN Testers is a network of smoke testers who run automated
111           tests on uploaded CPAN distributions.
112
113           <http://www.cpantesters.org/distro/S/Statistics-Descriptive>
114
115       •   CPAN Testers Matrix
116
117           The CPAN Testers Matrix is a website that provides a visual
118           overview of the test results for a distribution on various
119           Perls/platforms.
120
121           <http://matrix.cpantesters.org/?dist=Statistics-Descriptive>
122
123       •   CPAN Testers Dependencies
124
125           The CPAN Testers Dependencies is a website that shows a chart of
126           the test results of all dependencies for a distribution.
127
128           <http://deps.cpantesters.org/?module=Statistics::Descriptive>
129
130   Bugs / Feature Requests
131       Please report any bugs or feature requests by email to
132       "bug-statistics-descriptive at rt.cpan.org", or through the web
133       interface at
134       <https://rt.cpan.org/Public/Bug/Report.html?Queue=Statistics-Descriptive>.
135       You will be automatically notified of any progress on the request by
136       the system.
137
138   Source Code
139       The code is open to the world, and available for you to hack on. Please
140       feel free to browse it and play with it, or whatever. If you want to
141       contribute patches, please send me a diff or prod me to pull from your
142       repository :)
143
144       <https://github.com/shlomif/perl-Statistics-Descriptive>
145
146         git clone git://github.com/shlomif/perl-Statistics-Descriptive.git
147

AUTHOR

149       Shlomi Fish <shlomif@cpan.org>
150

BUGS

152       Please report any bugs or feature requests on the bugtracker website
153       <https://github.com/shlomif/perl-Statistics-Descriptive/issues>
154
155       When submitting a bug or request, please include a test-file or a patch
156       to an existing test-file that illustrates the bug or desired feature.
157
159       This software is copyright (c) 1997 by Jason Kastner, Andrea Spinelli,
160       Colin Kuskie, and others.
161
162       This is free software; you can redistribute it and/or modify it under
163       the same terms as the Perl 5 programming language system itself.
164
165
166
167perl v5.36.0                 Stati2s0t2i2c-s0:7:-D2e2scriptive::Smoother::Exponential(3)
Impressum