Simple linear regression with PHP: Part 1
The instance variables
When modeling a statistical test or procedure, you need to figure out which instance variables to declare.
The selection of instance variables can be determined by noting the intermediate and summary values to be generated by the analytic procedure. Each intermediate and summary value can have a corresponding instance variable to hold its value as an object attribute.
I conducted such an analysis to determine which variables to declare for the SimpleLinearRegression
class in Listing 1. A similiar analysis would be performed for a MultipleRegression
, ANOVA
, or TimeSeries
procedure.
|
View Simple linear regression with PHP: Part 1 Discussion
Page: 1 2 3 4 5 6 7 8 Next Page: The constructorFirst published by IBM developerWorks