com.kutsyy.lvspod
Class OrdinalSpatial

java.lang.Object
  |
  +--com.kutsyy.lvspod.OrdinalSpatialAbstract
        |
        +--com.kutsyy.lvspod.OrdinalSpatial
All Implemented Interfaces:
Function, MvFunction

public class OrdinalSpatial
extends OrdinalSpatialAbstract

Main class of the libarary.
Created by Vadim Kutsyy
This class should be called for all computations

Author:
Vadim Kutsyy

Field Summary
private static int[][] HNeighborgood
           
private  OrdinalSpatialAbstract T
           
 OrdinalSpatialBayesianAbstract TBayesian
           
 OrdinalSpatialBayesianGibbs TGibbs
           
private static int[][] TimeSeriesNeighborgood
           
private  OrdinalSpatialMdA TMdA
           
private  OrdinalSpatialMnA TMnA
           
 OrdinalSpatialQL[] TNearestAvg
           
private  OrdinalSpatialCLTrueX TTrueX
           
private  OrdinalSpatialCLTrueXPLE TTrueXPLE
           
private  String Type
           
private static int[][] VNeighborgood
           
 
Fields inherited from class com.kutsyy.lvspod.OrdinalSpatialAbstract
beta, betaKeep, Brent, EPS, gradient, itotal, K, keepConstant, L, lambda, Loc, M, max_over, Mnbrak, N, NeighborDefinition, p, phi, PHI_LIMIT, phiKeep, phiVar, Powell, rnd, Sigma, sqrtSigma, theta, THETA_BETWEEN, THETA_LIMIT, thetaKeep, thetal, thetaL, thetau, thetaU, TimeSeries, TrueBeta, TruePhi, TrueTheta, TrueX, W, x, xi, xLoc, xx, Y, yLoc, Z
 
Constructor Summary
OrdinalSpatial(int[] y)
           
OrdinalSpatial(int[] y, double[][] z)
           
OrdinalSpatial(int[] y, int[] xLocation, int[] yLocation)
          Constructor for the OrdinalSpatial object
OrdinalSpatial(int[] y, int[] xLocation, int[] yLocation, double[] z)
          Constructor for the OrdinalSpatial object
OrdinalSpatial(int[] y, int[] xLocation, int[] yLocation, double[][] z)
          Constructor for the OrdinalSpatial object
OrdinalSpatial(int[] y, int[] xLocation, int[] yLocation, double[][] z, int[][] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, double[] Theta, double Phi)
          put your documentation comment here
OrdinalSpatial(int XSize, double[] Theta, double Phi, double[] Beta, double[][][] z)
          Insert the method's description here.
OrdinalSpatial(int XSize, double[] Theta, double Phi, double[] Beta, double[][][] z, int[] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, double[] Theta, double Phi, double[] Beta, double[][][] z, int[][] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, double[] Theta, double Phi, int[] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, double[] Theta, double Phi, int[][] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, int YSize, double[] Theta, double Phi, double[] Beta, double[][][] z, int[][] Neighborgood)
          Insert the method's description here.
OrdinalSpatial(int XSize, int YSize, double[] Theta, double Phi, int[][] Neighborgood)
          Constructor for the OrdinalSpatial object
OrdinalSpatial(OrdinalSpatial t)
           
 
Method Summary
 void dataAgumentation()
          Insert the method's description here.
private  void generateX()
          Insert the method's description here.
 void generateY()
          Insert the method's description here.
 double[] getBeta()
          Gets the Beta attribute of the OrdinalSpatial object
 double getPhi()
          Description of the Method
 double[] getTheta()
          Description of the Method
 void gibbs()
          Description of the Method
 void impSampling()
          Description of the Method
 void impSampling(boolean Inteructive)
          Description of the Method
 double lA()
          Insert the method's description here.
 double lA(double phi, double[] theta)
          Insert the method's description here.
 double lA(double phi, double[] theta, double[] beta)
          Description of the Method
 double lA(String type)
          Insert the method's description here.
 double lA(String type, double phi, double[] theta)
          Insert the method's description here.
 double lA(String type, double phi, double[] theta, double[] beta)
          Insert the method's description here.
 double lCLTrueX()
          Insert the method's description here.
 double lCLTrueX(double Phi)
          Description of the Method
 double lCLTrueX(double Phi, double[] Beta)
          Description of the Method
 double lCLTrueXPLE()
          Description of the Method
 double lCLTrueXPLE(double Phi)
          Description of the Method
 double lCLTrueXPLE(double Phi, double[] Beta)
          Description of the Method
 double lL()
          Insert the method's description here.
 double lL(double phi, double[] theta, double[] beta)
          Insert the method's description here.
 double lMdA()
          Insert the method's description here.
 double lMdA(double phi, double[] theta)
          Insert the method's description here.
 double lMdA(double phi, double[] theta, double[] beta)
          Insert the method's description here.
 double lMnA()
          Insert the method's description here.
 double lMnA(double phi, double[] theta)
          Insert the method's description here.
 double lMnA(double phi, double[] theta, double[] beta)
          Insert the method's description here.
 double lQL()
          Insert the method's description here.
 double lQL(double phi, double[] theta)
          Insert the method's description here.
 double lQL(double phi, double[] theta, double[] beta)
          Insert the method's description here.
 void mA()
          Insert the method's description here.
 void mA(String type)
          Insert the method's description here.
 void mCLETrueX()
          Insert the method's description here.
 void mCLETrueX(double Phi)
          Description of the Method
 void mCLETrueX(double[] Beta)
          Description of the Method
 void mCLETrueXPLE()
          Description of the Method
 void mCLETrueXPLE(double Phi)
          Description of the Method
 void mCLETrueXPLE(double[] Beta)
          Description of the Method
 void mExA()
          put your documentation comment here
 void mMdA()
          Description of the Method
 void mMdA(double Phi)
          Description of the Method
 void mMdA(double[] Theta, double[] Beta)
          Description of the Method
 void mMdA(double Phi, double[] Theta)
          Description of the Method
 void mMdA(double Phi, double[] Theta, double[] Beta)
          Description of the Method
 void mMnA()
          Insert the method's description here.
 void mMnA(double Phi)
          Description of the Method
 void mMnA(double[] Theta, double[] Beta)
          Description of the Method
 void mMnA(double Phi, double[] Theta)
          Description of the Method
 void mMnA(double Phi, double[] Theta, double[] Beta)
          Description of the Method
 void mMnABeta0()
          Description of the Method
 void mQLE()
          Insert the method's description here.
 void mQLENearestAverege()
          Insert the method's description here.
 void mStEM()
          Insert the method's description here.
private static int[][] neighborgood1to2(int[] Neighborgood)
          put your documentation comment here
 void updateTrue(double Phi, double[] Theta, double[] Beta)
          Description of the Method
private static double[][] ZOne2Two(double[] z, int n)
          Description of the Method
 
Methods inherited from class com.kutsyy.lvspod.OrdinalSpatialAbstract
beta, createEigenvalues, createLoc, createSigma, createW, define, estimate, estimate, estimate, estimate, estimate, estimate, f, f, g, grad, initializeL, ll, lL, ll, makeThetaLU, test, testBeta, testPhi, testPhiBeta, updateY
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TNearestAvg

public OrdinalSpatialQL[] TNearestAvg

TBayesian

public OrdinalSpatialBayesianAbstract TBayesian

TGibbs

public OrdinalSpatialBayesianGibbs TGibbs

Type

private String Type

T

private OrdinalSpatialAbstract T

TMdA

private OrdinalSpatialMdA TMdA

TMnA

private OrdinalSpatialMnA TMnA

TTrueXPLE

private OrdinalSpatialCLTrueXPLE TTrueXPLE

TTrueX

private OrdinalSpatialCLTrueX TTrueX

TimeSeriesNeighborgood

private static final int[][] TimeSeriesNeighborgood

HNeighborgood

private static final int[][] HNeighborgood

VNeighborgood

private static final int[][] VNeighborgood
Constructor Detail

OrdinalSpatial

public OrdinalSpatial(OrdinalSpatial t)

OrdinalSpatial

public OrdinalSpatial(int[] y)

OrdinalSpatial

public OrdinalSpatial(int[] y,
                      double[][] z)

OrdinalSpatial

public OrdinalSpatial(int[] y,
                      int[] xLocation,
                      int[] yLocation,
                      double[][] z,
                      int[][] Neighborgood)
Insert the method's description here.
Parameters:
y - Description of Parameter
xLocation - Description of Parameter
yLocation - Description of Parameter
z - Description of Parameter
Neighborgood - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int[] y,
                      int[] xLocation,
                      int[] yLocation,
                      double[][] z)
Constructor for the OrdinalSpatial object
Parameters:
y - Description of Parameter
xLocation - Description of Parameter
yLocation - Description of Parameter
z - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int[] y,
                      int[] xLocation,
                      int[] yLocation,
                      double[] z)
Constructor for the OrdinalSpatial object
Parameters:
y - Description of Parameter
xLocation - Description of Parameter
yLocation - Description of Parameter
z - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int[] y,
                      int[] xLocation,
                      int[] yLocation)
Constructor for the OrdinalSpatial object
Parameters:
y - Description of Parameter
xLocation - Description of Parameter
yLocation - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi)
put your documentation comment here
Parameters:
XSize - Description of Parameter
Theta - Description of Parameter
Phi - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi,
                      int[][] Neighborgood)
Insert the method's description here. Creation date: (9/15/00 11:25:35 AM)
Parameters:
XSize - int
Theta - double[]
Phi - double
Neighborgood - int[][]

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi,
                      double[] Beta,
                      double[][][] z)
Insert the method's description here. Creation date: (9/15/00 11:25:10 AM)
Parameters:
XSize - int
Theta - double[]
Phi - double
Beta - double[]
z - double[][][]

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi,
                      double[] Beta,
                      double[][][] z,
                      int[][] Neighborgood)
Insert the method's description here. Creation date: (9/15/00 11:25:10 AM)
Parameters:
XSize - int
Theta - double[]
Phi - double
Beta - double[]
z - double[][][]
Neighborgood - int[][]

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi,
                      double[] Beta,
                      double[][][] z,
                      int[] Neighborgood)
Insert the method's description here. Creation date: (9/15/00 11:25:10 AM)
Parameters:
XSize - int
Theta - double[]
Phi - double
Beta - double[]
z - double[][][]
Neighborgood - int[]

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      double[] Theta,
                      double Phi,
                      int[] Neighborgood)
Insert the method's description here. Creation date: (9/15/00 11:25:35 AM)
Parameters:
XSize - int
Theta - double[]
Phi - double
Neighborgood - int[]

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      int YSize,
                      double[] Theta,
                      double Phi,
                      int[][] Neighborgood)
Constructor for the OrdinalSpatial object
Parameters:
XSize - Description of Parameter
YSize - Description of Parameter
Theta - Description of Parameter
Phi - Description of Parameter
Neighborgood - Description of Parameter

OrdinalSpatial

public OrdinalSpatial(int XSize,
                      int YSize,
                      double[] Theta,
                      double Phi,
                      double[] Beta,
                      double[][][] z,
                      int[][] Neighborgood)
Insert the method's description here.
Parameters:
YSize - int
XSize - int
Theta - double[]
Phi - double
Beta - double[] is a true value for covariates coffitints.
z - double[][][] is a covariates coeffitient [Xloc][Yloc][cavariate]
Neighborgood - Description of Parameter
Method Detail

getPhi

public double getPhi()
Description of the Method
Returns:
Description of the Returned Value

getTheta

public double[] getTheta()
Description of the Method
Returns:
Description of the Returned Value

getBeta

public double[] getBeta()
Gets the Beta attribute of the OrdinalSpatial object
Returns:
The Beta value

generateY

public void generateY()
Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here. Insert the method's description here.

lA

public double lA()
Insert the method's description here.
Returns:
double

lA

public double lA(double phi,
                 double[] theta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
Returns:
double

lA

public double lA(String type)
Insert the method's description here.
Parameters:
type - Description of Parameter
Returns:
double

lA

public double lA(String type,
                 double phi,
                 double[] theta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
type - Description of Parameter
Returns:
double

lCLTrueX

public double lCLTrueX()
Insert the method's description here.
Returns:
double

lCLTrueX

public double lCLTrueX(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter
Returns:
Description of the Returned Value

lCLTrueX

public double lCLTrueX(double Phi,
                       double[] Beta)
Description of the Method
Parameters:
Phi - Description of Parameter
Beta - Description of Parameter
Returns:
Description of the Returned Value

lCLTrueXPLE

public double lCLTrueXPLE()
Description of the Method
Returns:
Description of the Returned Value

lCLTrueXPLE

public double lCLTrueXPLE(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter
Returns:
Description of the Returned Value

lCLTrueXPLE

public double lCLTrueXPLE(double Phi,
                          double[] Beta)
Description of the Method
Parameters:
Phi - Description of Parameter
Beta - Description of Parameter
Returns:
Description of the Returned Value

lL

public double lL()
Insert the method's description here.
Overrides:
lL in class OrdinalSpatialAbstract
Returns:
Description of the Returned Value

lL

public double lL(double phi,
                 double[] theta,
                 double[] beta)
Insert the method's description here.
Overrides:
lL in class OrdinalSpatialAbstract
Parameters:
phi - double
theta - Description of Parameter
beta - Description of Parameter
Returns:
double

lQL

public double lQL()
Insert the method's description here.
Returns:
double

lQL

public double lQL(double phi,
                  double[] theta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
Returns:
double

lQL

public double lQL(double phi,
                  double[] theta,
                  double[] beta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
beta - double[]
Returns:
double

mA

public void mA()
Insert the method's description here.

mA

public void mA(String type)
Insert the method's description here.
Parameters:
type - Description of Parameter

mCLETrueX

public void mCLETrueX()
Insert the method's description here.

mCLETrueX

public void mCLETrueX(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter

mCLETrueX

public void mCLETrueX(double[] Beta)
Description of the Method
Parameters:
Beta - Description of Parameter

mCLETrueXPLE

public void mCLETrueXPLE()
Description of the Method

mCLETrueXPLE

public void mCLETrueXPLE(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter

mCLETrueXPLE

public void mCLETrueXPLE(double[] Beta)
Description of the Method
Parameters:
Beta - Description of Parameter

mExA

public void mExA()
put your documentation comment here

mQLE

public void mQLE()
Insert the method's description here.

mStEM

public void mStEM()
Insert the method's description here.

lA

public double lA(double phi,
                 double[] theta,
                 double[] beta)
Description of the Method
Parameters:
phi - Description of Parameter
theta - Description of Parameter
beta - Description of Parameter
Returns:
Description of the Returned Value

lA

public double lA(String type,
                 double phi,
                 double[] theta,
                 double[] beta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
beta - double[]
type - Description of Parameter
Returns:
double

mQLENearestAverege

public void mQLENearestAverege()
Insert the method's description here.

dataAgumentation

public void dataAgumentation()
Insert the method's description here.

impSampling

public void impSampling()
Description of the Method

impSampling

public void impSampling(boolean Inteructive)
Description of the Method
Parameters:
Inteructive - Description of Parameter

gibbs

public void gibbs()
Description of the Method
Parameters:
inteructive - Description of Parameter

mMdA

public void mMdA()
Description of the Method

mMnA

public void mMnA()
Insert the method's description here.

mMnA

public void mMnA(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter

mMnA

public void mMnA(double Phi,
                 double[] Theta)
Description of the Method
Parameters:
Phi - Description of Parameter
Theta - Description of Parameter

mMnA

public void mMnA(double Phi,
                 double[] Theta,
                 double[] Beta)
Description of the Method
Parameters:
Phi - Description of Parameter
Theta - Description of Parameter
Beta - Description of Parameter

mMnA

public void mMnA(double[] Theta,
                 double[] Beta)
Description of the Method
Parameters:
Theta - Description of Parameter
Beta - Description of Parameter

mMdA

public void mMdA(double Phi)
Description of the Method
Parameters:
Phi - Description of Parameter

mMdA

public void mMdA(double Phi,
                 double[] Theta)
Description of the Method
Parameters:
Phi - Description of Parameter
Theta - Description of Parameter

mMdA

public void mMdA(double Phi,
                 double[] Theta,
                 double[] Beta)
Description of the Method
Parameters:
Phi - Description of Parameter
Theta - Description of Parameter
Beta - Description of Parameter

mMnABeta0

public void mMnABeta0()
Description of the Method

mMdA

public void mMdA(double[] Theta,
                 double[] Beta)
Description of the Method
Parameters:
Theta - Description of Parameter
Beta - Description of Parameter

updateTrue

public void updateTrue(double Phi,
                       double[] Theta,
                       double[] Beta)
Description of the Method
Parameters:
Phi - Description of Parameter
Theta - Description of Parameter
Beta - Description of Parameter

lMdA

public double lMdA()
Insert the method's description here.
Returns:
double

lMdA

public double lMdA(double phi,
                   double[] theta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
Returns:
double

lMdA

public double lMdA(double phi,
                   double[] theta,
                   double[] beta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
beta - double[]
Returns:
double

lMnA

public double lMnA()
Insert the method's description here.
Returns:
double

lMnA

public double lMnA(double phi,
                   double[] theta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
Returns:
double

lMnA

public double lMnA(double phi,
                   double[] theta,
                   double[] beta)
Insert the method's description here.
Parameters:
phi - double
theta - double[]
beta - double[]
Returns:
double

generateX

private void generateX()
Insert the method's description here. Creation date: (6/13/00 2:22:00 PM)

ZOne2Two

private static double[][] ZOne2Two(double[] z,
                                   int n)
Description of the Method
Parameters:
z - Description of Parameter
n - Description of Parameter
Returns:
Description of the Returned Value

neighborgood1to2

private static int[][] neighborgood1to2(int[] Neighborgood)
put your documentation comment here
Parameters:
Neighborgood -  
Returns: