DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T b

⟦eecb74851⟧ TextFile

    Length: 789 (0x315)
    Types: TextFile
    Names: »best_fit«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec1/graph/best_fit« 

TextFile


Sxy_table = {{0}}
Sxy( Sxy_table ) =
	sum ( Sxy_table[ $1*$2 ] ) - ( 1 / count ( Sxy_table ) )
	* sum ( Sxy_table[ $1 ] ) * sum ( Sxy_table [ $2 ] )

beta_table = {{0}}
beta_func ( beta_table ) = 
	Sxy ( beta_table ) / Sxy ( beta_table[ $1 , $1 ] )

alpha_table = {{0}}
alpha_func ( alpha_table ) =
	average ( alpha_table[ $2 ] )
	- beta_func ( alpha_table ) * average ( alpha_table[ $1 ] )

fit_Min = 0
fit_Max = 0
fit_Alpha = 0
fit_Beta = 0
line_fit2 ( fit_Min , fit_Max , fit_Alpha , fit_Beta ) =
	{{ fit_Min , fit_Alpha + fit_Beta * fit_Min }
	{  fit_Max , fit_Alpha + fit_Beta * fit_Max }}

line_fit_table = {{0}}
line_fit ( line_fit_table ) =
	line_fit2 ( min ( line_fit_table[ $1 ] ) , max ( line_fit_table[ $1 ] ),
	alpha_func ( line_fit_table ) , beta_func ( line_fit_table ) )