Class UserBasisRegressionEx1

java.lang.Object
com.imsl.test.example.stat.UserBasisRegressionEx1

public class UserBasisRegressionEx1 extends Object

Fits a regression to a function without noise with user defined basis functions.

In this example, we fit the function \(y = 1 + sin(x) + 7 * sin(3x)\) with no error introduced. The function is evaluated at \( 90 \) equally spaced points on the interval \([0, 6]\). Four basis functions are used, \(sin(kx), k = 1,...,4 \) with no intercept.
See Also:
  • Constructor Details

    • UserBasisRegressionEx1

      public UserBasisRegressionEx1()
  • Method Details

    • main

      public static void main(String[] args)