diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-06 15:01:10 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-06 15:01:10 +0000 |
commit | bf0f2e15fa017a5bbea6dce8517a79063fc8b325 (patch) | |
tree | 5686849cf7e93e4b5b4878712262d45f1d62c79c /src/datasets | |
parent | 9f40ec30e4737262a2132dfa76dc0beba30fa795 (diff) | |
download | zetacomponents-graph-bf0f2e15fa017a5bbea6dce8517a79063fc8b325.zip zetacomponents-graph-bf0f2e15fa017a5bbea6dce8517a79063fc8b325.tar.gz |
- Made maximum polynom order for average polynoms constructor parameter
Diffstat (limited to 'src/datasets')
-rw-r--r-- | src/datasets/average.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/datasets/average.php b/src/datasets/average.php index 0dc8f94..3842d21 100644 --- a/src/datasets/average.php +++ b/src/datasets/average.php @@ -36,16 +36,17 @@ class ezcGraphDataSetAveragePolynom extends ezcGraphDataSet /** * Constructor * - * @param array $options Default option array + * @param array $dataset Dataset to interpolate + * @param array $order Maximum order of interpolating polynom * @return void * @ignore */ - public function __construct( ezcGraphDataSet $dataset ) + public function __construct( ezcGraphDataSet $dataset, $order = 3 ) { parent::__construct(); $this->properties['resolution'] = 100; - $this->properties['polynomOrder'] = 3; + $this->properties['polynomOrder'] = (int) $order; $this->source = $dataset; } |