PHP 클래스 MathPHP\Statistics\Regression\PowerLaw

A functional relationship between two quantities, where a relative change in one quantity results in a proportional relative change in the other quantity, independent of the initial size of those quantities: one quantity varies as a power of another. https://en.wikipedia.org/wiki/Power_law y = Axᴮ Using least squares fitting: y = axᵇ n∑⟮ln xᵢ ln yᵢ⟯ − ∑⟮ln xᵢ⟯ ∑⟮ln yᵢ⟯ b = -------------------------------- n∑⟮ln xᵢ⟯² − ⟮∑⟮ln xᵢ⟯⟯² _ _ | ∑⟮ln yᵢ⟯ − b∑⟮ln xᵢ⟯ | a = exp| ------------------ | |_ n _|
상속: extends ParametricRegression, use trait MathPHP\Statistics\Regression\Models\PowerModel, use trait MathPHP\Statistics\Regression\Methods\LeastSquares
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
calculate ( ) Calculate the regression parameters by least squares on linearized data ln(y) = ln(A) + B*ln(x)

메소드 상세

calculate() 공개 메소드

Calculate the regression parameters by least squares on linearized data ln(y) = ln(A) + B*ln(x)
public calculate ( )