Skip to content

Commit

Permalink
Fix PHPDocs Shared/Trend/BestFit
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbon authored and Frederic Delaunay committed Oct 29, 2018
1 parent 3162ad2 commit 0e39ffe
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions src/PhpSpreadsheet/Shared/Trend/BestFit.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getEquation($dp = 0)
*
* @param int $dp Number of places of decimal precision to display
*
* @return string
* @return float
*/
public function getSlope($dp = 0)
{
Expand All @@ -158,7 +158,7 @@ public function getSlope($dp = 0)
*
* @param int $dp Number of places of decimal precision to display
*
* @return string
* @return float
*/
public function getSlopeSE($dp = 0)
{
Expand All @@ -174,7 +174,7 @@ public function getSlopeSE($dp = 0)
*
* @param int $dp Number of places of decimal precision to display
*
* @return string
* @return float
*/
public function getIntersect($dp = 0)
{
Expand All @@ -190,7 +190,7 @@ public function getIntersect($dp = 0)
*
* @param int $dp Number of places of decimal precision to display
*
* @return string
* @return float
*/
public function getIntersectSE($dp = 0)
{
Expand All @@ -217,6 +217,13 @@ public function getGoodnessOfFit($dp = 0)
return $this->goodnessOfFit;
}

/**
* Return the goodness of fit for this regression.
*
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getGoodnessOfFitPercent($dp = 0)
{
if ($dp != 0) {
Expand All @@ -242,6 +249,11 @@ public function getStdevOfResiduals($dp = 0)
return $this->stdevOfResiduals;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getSSRegression($dp = 0)
{
if ($dp != 0) {
Expand All @@ -251,6 +263,11 @@ public function getSSRegression($dp = 0)
return $this->SSRegression;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getSSResiduals($dp = 0)
{
if ($dp != 0) {
Expand All @@ -260,6 +277,11 @@ public function getSSResiduals($dp = 0)
return $this->SSResiduals;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getDFResiduals($dp = 0)
{
if ($dp != 0) {
Expand All @@ -269,6 +291,11 @@ public function getDFResiduals($dp = 0)
return $this->DFResiduals;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getF($dp = 0)
{
if ($dp != 0) {
Expand All @@ -278,6 +305,11 @@ public function getF($dp = 0)
return $this->f;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getCovariance($dp = 0)
{
if ($dp != 0) {
Expand All @@ -287,6 +319,11 @@ public function getCovariance($dp = 0)
return $this->covariance;
}

/**
* @param int $dp Number of places of decimal precision to return
*
* @return float
*/
public function getCorrelation($dp = 0)
{
if ($dp != 0) {
Expand All @@ -296,6 +333,9 @@ public function getCorrelation($dp = 0)
return $this->correlation;
}

/**
* @return float[]
*/
public function getYBestFitValues()
{
return $this->yBestFitValues;
Expand Down

0 comments on commit 0e39ffe

Please sign in to comment.