| LTPDA Toolbox™ | contents | ![]() |
POWERFIT fits a piecewise powerlaw to the given data. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: POWERFIT fits a piecewise powerlaw to the given data by minimising the log-likelihood function. CALL: out = obj.powerFit(pl) out = powerFit(objs, pl) INPUTS: pl - a parameter list obj(s) - input ao object(s) OUTPUTS: out - some output. Created 2013-02-20, M Hewitson - adapted from code writen by Curt Cutler and Ira Thorpe. Parameters Description %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
| Method Details | |
|---|---|
| Access | public |
| Defining Class | ao |
| Sealed | 0 |
| Static | 0 |
| Sets for this method … |
|---|
| Default |
Default |
|||
|---|---|---|---|
| no description | |||
| Key | Default Value | Options | Description |
| powerFit | |||
| ORDERS | 0 | none | The powers of the dependent variable to fit to the data. |
| P0 | 1 | none | An initial guess for the power-law coefficients. |
| OFFSETS | [] | none | offset frequencies of the power-law from DC. |
| UB | [] | none | Array of upper bounds for parameters. If empty, the upper bound is +Inf for all variables. |
| LB | [] | none | Array of lower bounds for parameters. If empty, the lower bound is -Inf for all variables. |
| WEIGHTS | [] | none | Weights for individual data bins. If empty, all bins are weighted equally. Can also be a plist for a built-in ao model |
| FUNCTION | 'Sum' |
|
Function to use when calculating the liklihood.
|
| EXP_FACT | 7 | none | Factor used in exponential weighting of likelihood funciton |
Example |
|---|
| plist('ORDERS', [0], 'P0', [1], 'OFFSETS', [[]], 'UB', [[]], 'LB', [[]], 'WEIGHTS', [[]], 'FUNCTION', 'Sum', 'EXP_FACT', [7]) |
back to top
| Some information of the method ao/powerFit are listed below: | |
|---|---|
| Class name | ao |
| Method name | powerFit |
| Category | Signal Processing |
| Package name | ltpda |
| Can be used as modifier | 1 |
| Supported numeric types | {'double'} |
|
Method: ao/polynomfit | Method: ao/ppsd | ![]() |
©LTP Team