Demo entry 6344553

test

   

Submitted by anonymous on Jan 15, 2017 at 19:47
Language: Java. Code size: 814 Bytes.

package de.baeumler;

public class Main {

    public static void main(String[] args) {

        try {
            InputReader inputReader = new InputReader();
            inputReader.readInput();
            boolean absolute = inputReader.isAblolute();
            int polPower = inputReader.getPolPower();
            double[] valX = inputReader.getValuesX();
            double[] valY = inputReader.getValuesY();

            OLSSolver solver = new OLSSolver(valX, valY, 
			polPower, absolute);
            System.out.println("Solving ordinary least squares");
            solver.solve();

            String equation = solver.getEquation();
            System.out.println("Solution: " + equation);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).