public class HGLMUtils
extends java.lang.Object
Constructor and Description |
---|
HGLMUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
calTauEvarEq17(double residualSquare,
double tauEVar,
double[][][] cjInv,
double[][][] arjTArj,
double oneOverN) |
static boolean |
checkPositiveG(int numLevel2Units,
double[][] tMat) |
static double[][][] |
copy3DArray(double[][][] src) |
static boolean |
equal2DArrays(double[][] arr1,
double[][] arr2,
double threshold) |
static double[] |
estimateFixedCoeff(double[][] AfjTAfjSumInv,
double[] AfjTYjSum,
double[][][] AfjTArj,
double[][] ubeta) |
static double[][] |
estimateNewRandomEffects(double[][][] cjInv,
double[][] ArjTYj,
double[][][] ArjTAfj,
double[] beta)
Note that the term ArjTYj and ArjTAfj are fixed and won't change.
|
static double[][] |
estimateNewtMat(double[][] ubeta,
double tauEVar,
double[][][] cJInv,
double oneOverNumLevel2) |
static double[][] |
fillZTTimesZ(double[][][] arjTArj) |
static double[][][] |
generateCJInverse(double[][][] arjTArj,
double tauEVar,
double[][] tMatInv) |
static double[][] |
generateNewTmat(double[][] ubeta) |
static double[][] |
generateTInverse(double[][] tMat) |
static void |
grabInitValuesFromFrame(water.Key frameKey,
double[][] ubeta) |
static void |
setDiagValues(double[][] tMat,
double tauUVar) |
public static double[][][] copy3DArray(double[][][] src)
public static void grabInitValuesFromFrame(water.Key frameKey, double[][] ubeta)
public static void setDiagValues(double[][] tMat, double tauUVar)
public static boolean equal2DArrays(double[][] arr1, double[][] arr2, double threshold)
public static double[][] generateTInverse(double[][] tMat)
public static double[][][] generateCJInverse(double[][][] arjTArj, double tauEVar, double[][] tMatInv)
public static double[][] estimateNewRandomEffects(double[][][] cjInv, double[][] ArjTYj, double[][][] ArjTAfj, double[] beta)
public static double[] estimateFixedCoeff(double[][] AfjTAfjSumInv, double[] AfjTYjSum, double[][][] AfjTArj, double[][] ubeta)
public static double[][] estimateNewtMat(double[][] ubeta, double tauEVar, double[][][] cJInv, double oneOverNumLevel2)
public static double calTauEvarEq17(double residualSquare, double tauEVar, double[][][] cjInv, double[][][] arjTArj, double oneOverN)
public static double[][] fillZTTimesZ(double[][][] arjTArj)
public static boolean checkPositiveG(int numLevel2Units, double[][] tMat)
public static double[][] generateNewTmat(double[][] ubeta)