Skip to content
  • Philippe Veber's avatar
    tk/Mutsel_simulator_cpg: simulator with linear time complexity · 7411d86f
    Philippe Veber authored
    now we can generate a million sites within a minute
    
    > df <- data.frame(n = c(10000,30000,100000,300000), t = c(1.08,2.25,6.27,18.03)) ; fit <- lm(t ~ n, data = df) ; summary(fit)
    
    Call:
    lm(formula = t ~ n, data = df)
    
    Residuals:
           1        2        3        4
     0.01851  0.01931 -0.05290  0.01509
    
    Coefficients:
                 Estimate Std. Error t value Pr(>|t|)
    (Intercept) 4.769e-01  2.997e-02   15.91  0.00393 **
    n           5.846e-05  1.886e-07  310.00 1.04e-05 ***
    ---
    Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
    
    Residual standard error: 0.04325 on 2 degrees of freedom
    Multiple R-squared:      1,	Adjusted R-squared:      1
    F-statistic: 9.61e+04 on 1 and 2 DF,  p-value: 1.041e-05
    7411d86f