/*
	Minimal application that reads data into variables and registers them with a 
	VariableOrganizer
	lobsterman 01/04/24
*/

import JavaGrinders.*;
import JavaGrinders.parametric.*;
import Jama.*;

public class ParametricAnalysisDemo {

	public static void main(String args[]) {
	try {
        // define and contruct a Parser for a DataFile with a given name.
        // Note, for this to work you need to place this file in the same
        // harddisk directory as your project. If no name is provided then
        // a standard filechooser dialog box will pop up allowing you to
        // select a file from your hard disk.
        DataFileParser myParser = new DataFileParser("DataFiles/factor.txt");
        // now construct a VariableOrganizer from the Parser
        VariableOrganizer myOrganizer = new VariableOrganizer(myParser,true);
        // contruct variables and register them with the VariableOrganizer 
        ParametricAnalyzer pAnalyzer = new ParametricAnalyzer(myOrganizer);
        myOrganizer.setVariableDesignRole(2,VariableDesignRole.X);
        pAnalyzer.listVCVMatrix();
        pAnalyzer.listCorrMatrix();
	} catch (Throwable e) { System.err.println(e); }
	}
}
