@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @access public |
| 101 | 101 | * @param int $type one of HISTOGRAM_SIMPLE or HISTOGRAM_CUMMULATIVE |
| 102 | - * @return mixed boolean true on success, a PEAR_Error object otherwise |
|
| 102 | + * @return boolean boolean true on success, a PEAR_Error object otherwise |
|
| 103 | 103 | */ |
| 104 | 104 | public function setType($type) |
| 105 | 105 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * |
| 118 | 118 | * @access public |
| 119 | 119 | * @param array $binOptions associative array of bin options |
| 120 | - * @return mixed true on succcess, a PEAR_Error object otherwise |
|
| 120 | + * @return boolean true on succcess, a PEAR_Error object otherwise |
|
| 121 | 121 | */ |
| 122 | 122 | public function setBinOptions($binOptions) |
| 123 | 123 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @access public |
| 69 | 69 | * @param array $data the numeric array |
| 70 | - * @return mixed boolean true on success, a \PEAR_Error object otherwise |
|
| 70 | + * @return boolean boolean true on success, a \PEAR_Error object otherwise |
|
| 71 | 71 | * |
| 72 | 72 | * @see _clear() |
| 73 | 73 | * @see Math_AbstractHistogram::getData() |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @access public |
| 108 | 108 | * @param optional $statsMode calculate basic statistics (STATS_BASIC) or full (STATS_FULL) |
| 109 | - * @return mixed boolean true on success, a \PEAR_Error object otherwise |
|
| 109 | + * @return boolean boolean true on success, a \PEAR_Error object otherwise |
|
| 110 | 110 | * |
| 111 | 111 | * @see Math_Stats |
| 112 | 112 | */ |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * @deprecated |
| 271 | 271 | * @access public |
| 272 | 272 | * @param optional int $mode one of HISTOGRAM_LO_BINS, HISTOGRAM_MID_BINS, or HISTOGRAM_HI_BINS (default) |
| 273 | - * @return mixed a string on success, a \PEAR_Error object otherwise |
|
| 273 | + * @return string a string on success, a \PEAR_Error object otherwise |
|
| 274 | 274 | */ |
| 275 | 275 | public function printHistogram($mode = self::HISTOGRAM_HI_BINS) |
| 276 | 276 | { |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | * Sets the binning options. Overrides parent's method. |
| 43 | 43 | * |
| 44 | 44 | * @access public |
| 45 | - * @param array $binOptions an array of options for binning the data |
|
| 46 | - * @return void |
|
| 45 | + * @param string $binOptions an array of options for binning the data |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | public function setBinOptions($binOptions) |
| 49 | 49 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @access public |
| 64 | 64 | * @param array $data the numeric array |
| 65 | - * @return mixed boolean true on success, a \PEAR_Error object otherwise |
|
| 65 | + * @return boolean boolean true on success, a \PEAR_Error object otherwise |
|
| 66 | 66 | * |
| 67 | 67 | * @see _clear() |
| 68 | 68 | * @see Math_AbstractHistogram::getData() |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * array |
| 266 | 266 | * |
| 267 | 267 | * @access private |
| 268 | - * @param array $elem |
|
| 268 | + * @param string $elem |
|
| 269 | 269 | * @return array of values: array(min, max) |
| 270 | 270 | */ |
| 271 | 271 | public function _getMinMax($elem) |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * Common options: |
| 57 | 57 | * 'useHTTPHeaders' (default = false), whether to output HTTP headers when using printOutput() |
| 58 | 58 | * 'outputStatistics' (default = false), whether to include histogram statistics when generating the output |
| 59 | - * @return boolean TRUE on success, FALSE otherwise |
|
| 59 | + * @return boolean|null TRUE on success, FALSE otherwise |
|
| 60 | 60 | */ |
| 61 | 61 | public function setOptions($options) |
| 62 | 62 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * |
| 143 | 143 | * @static |
| 144 | 144 | * @access private |
| 145 | - * @param object $printer An instance of a Histogram_Printer_* class |
|
| 145 | + * @param Text $printer An instance of a Histogram_Printer_* class |
|
| 146 | 146 | * @param object Histogram $hist A Histogram instance |
| 147 | 147 | * @param array $options An array of options for the printer object |
| 148 | 148 | * @return boolean|PEAR_Error TRUE on success, a \PEAR_Error otherwise |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @access public |
| 121 | 121 | * @param array $arr the data set |
| 122 | 122 | * @param optional int $opt data format: STATS_DATA_CUMMULATIVE or STATS_DATA_SIMPLE (default) |
| 123 | - * @return mixed true on success, a PEAR_Error object otherwise |
|
| 123 | + * @return boolean true on success, a PEAR_Error object otherwise |
|
| 124 | 124 | */ |
| 125 | 125 | public function setData($arr, $opt = self::STATS_DATA_SIMPLE) |
| 126 | 126 | { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * Must be called before assigning a new data set containing null values |
| 171 | 171 | * |
| 172 | 172 | * @access public |
| 173 | - * @return mixed true on success, a PEAR_Error object otherwise |
|
| 173 | + * @return boolean true on success, a PEAR_Error object otherwise |
|
| 174 | 174 | * @see _validate() |
| 175 | 175 | */ |
| 176 | 176 | public function setNullOption($nullOption) |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | * Handles cummulative data sets correctly |
| 482 | 482 | * |
| 483 | 483 | * @access public |
| 484 | - * @param numeric $n the exponent |
|
| 484 | + * @param integer $n the exponent |
|
| 485 | 485 | * @return mixed the sum on success, a PEAR_Error object otherwise |
| 486 | 486 | * @see calc() |
| 487 | 487 | * @see sum() |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | * Handles cummulative data sets correctly |
| 537 | 537 | * |
| 538 | 538 | * @access public |
| 539 | - * @param numeric $n the exponent |
|
| 539 | + * @param integer $n the exponent |
|
| 540 | 540 | * @return numeric|array|PEAR_Error the product as a number or an array of numbers |
| 541 | 541 | * (if there is numeric overflow) on success, |
| 542 | 542 | * a PEAR_Error object otherwise |
@@ -731,7 +731,7 @@ discard block |
||
| 731 | 731 | * |
| 732 | 732 | * @access public |
| 733 | 733 | * @param numeric $mean the fixed mean value |
| 734 | - * @return mixed the variance on success, a PEAR_Error object otherwise |
|
| 734 | + * @return double the variance on success, a PEAR_Error object otherwise |
|
| 735 | 735 | * @see __sumdiff() |
| 736 | 736 | * @see count() |
| 737 | 737 | * @see variance() |
@@ -1502,7 +1502,7 @@ discard block |
||
| 1502 | 1502 | * @todo need to double check generality of the algorithm |
| 1503 | 1503 | * |
| 1504 | 1504 | * @access public |
| 1505 | - * @param numeric $p the percentile to estimate, e.g. 25 for 25th percentile |
|
| 1505 | + * @param integer $p the percentile to estimate, e.g. 25 for 25th percentile |
|
| 1506 | 1506 | * @return mixed a numeric value on success, a PEAR_Error otherwise |
| 1507 | 1507 | * @see quartiles() |
| 1508 | 1508 | * @see median() |
@@ -1540,7 +1540,7 @@ discard block |
||
| 1540 | 1540 | * Utility function to calculate: SUM { (xi - mean)^n } |
| 1541 | 1541 | * |
| 1542 | 1542 | * @access private |
| 1543 | - * @param numeric $power the exponent |
|
| 1543 | + * @param integer $power the exponent |
|
| 1544 | 1544 | * @param optional double $mean the data set mean value |
| 1545 | 1545 | * @return mixed the sum on success, a PEAR_Error object otherwise |
| 1546 | 1546 | * |
@@ -1678,7 +1678,7 @@ discard block |
||
| 1678 | 1678 | * |
| 1679 | 1679 | * @access private |
| 1680 | 1680 | * @param mixed $v value to be formatted |
| 1681 | - * @param boolean $returnErrorObject whether the raw PEAR_Error (when true, default), |
|
| 1681 | + * @param boolean $useErrorObject whether the raw PEAR_Error (when true, default), |
|
| 1682 | 1682 | * or only the error message will be returned (when false) |
| 1683 | 1683 | * @return mixed if the value is a PEAR_Error object, and $useErrorObject |
| 1684 | 1684 | * is false, then a string with the error message will be returned, |
@@ -1699,7 +1699,7 @@ discard block |
||
| 1699 | 1699 | * according to the current null handling option |
| 1700 | 1700 | * |
| 1701 | 1701 | * @access private |
| 1702 | - * @return mixed true on success, a PEAR_Error object otherwise |
|
| 1702 | + * @return boolean true on success, a PEAR_Error object otherwise |
|
| 1703 | 1703 | * |
| 1704 | 1704 | * @see setData() |
| 1705 | 1705 | */ |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | * Sets the binning options. Overrides parent's method. |
| 43 | 43 | * |
| 44 | 44 | * @access public |
| 45 | - * @param array $binOptions an array of options for binning the data |
|
| 46 | - * @return void |
|
| 45 | + * @param string $binOptions an array of options for binning the data |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | |
| 49 | 49 | public function setBinOptions($binOptions) |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * @access public |
| 63 | 63 | * @param array $data the numeric array |
| 64 | - * @return mixed boolean true on success, a \PEAR_Error object otherwise |
|
| 64 | + * @return boolean boolean true on success, a \PEAR_Error object otherwise |
|
| 65 | 65 | * |
| 66 | 66 | * @see _clear() |
| 67 | 67 | * @see Math_AbstractHistogram::getData() |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | * array |
| 241 | 241 | * |
| 242 | 242 | * @access private |
| 243 | - * @param array $elem |
|
| 243 | + * @param string $elem |
|
| 244 | 244 | * @return array of values: array(min, max) |
| 245 | 245 | */ |
| 246 | 246 | public function _getMinMax($elem) |