| 1 | <?php |
||
| 7 | class MinMaxArrayIterator extends \ArrayIterator implements MinMaxInterface |
||
| 8 | { |
||
| 9 | protected $range_steps = 0.1; |
||
| 10 | |||
| 11 | 24 | public function max() |
|
| 15 | |||
| 16 | 48 | public function min() |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Returns an range array from smallest to greatest exposure value. |
||
| 23 | * The default step width is a third of log10(2) and can be customized |
||
| 24 | * with an optional method parameter. |
||
| 25 | * |
||
| 26 | * The minimum value is ceiled, and the maximum is floored. |
||
| 27 | * |
||
| 28 | * @param float $step Optional: custom range step width |
||
| 29 | * @return \SplFixedArray |
||
| 30 | */ |
||
| 31 | 12 | public function getRange( float $step = null) : \SplFixedArray |
|
| 39 | |||
| 40 | } |
||
| 41 |