|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.toolbox.statistics.RegressionUtilities
public class RegressionUtilities
Utilities for regression analysis
| Nested Class Summary | |
|---|---|
static class |
RegressionUtilities.AnovaResult
|
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log
|
static int |
DEFAULT_MAX_MILLIS_FOR_ROBUST_REGRESSION
|
static java.lang.String |
REGRESSION_INTERCEPT_KEY
|
static java.lang.String |
REGRESSION_SIGMA_KEY
|
static java.lang.String |
REGRESSION_SLOPE_KEY
|
| Constructor Summary | |
|---|---|
RegressionUtilities()
|
|
| Method Summary | |
|---|---|
static double |
mapValueUsingCoefficients(double[] coefficients,
double valueToMap)
|
static double[] |
modalRegression(double[] xset,
double[] yset)
Default: two coefficients |
static double[] |
modalRegression(double[] xset,
double[] yset,
int degree)
Call Yan's Modal Regression R code. |
static RegressionUtilities.AnovaResult |
oneWayAnova(double[] categories,
double[] outcomes)
|
static RegressionUtilities.AnovaResult |
oneWayAnova(java.util.List<? extends java.lang.Number> categories,
java.util.List<? extends java.lang.Number> outcomes)
Cover method. |
static double |
predictXFromY(double slope,
double intercept,
double y)
Given a slope and intercept of a line relating x and y, predict y from x |
static double |
predictYFromX(double slope,
double intercept,
double x)
Given a slope and intercept of a line relating x and y, predict x from y |
static double[] |
robustRegression(double[] xset,
double[] yset)
|
static double[] |
robustRegression(double[] xset,
double[] yset,
int millis)
|
static java.lang.Integer[] |
selectIndexesWithLowAbsoluteSomething(double[] somethings,
double maxSomething)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log
public static final java.lang.String REGRESSION_SLOPE_KEY
public static final java.lang.String REGRESSION_INTERCEPT_KEY
public static final java.lang.String REGRESSION_SIGMA_KEY
public static final int DEFAULT_MAX_MILLIS_FOR_ROBUST_REGRESSION
| Constructor Detail |
|---|
public RegressionUtilities()
| Method Detail |
|---|
public static RegressionUtilities.AnovaResult oneWayAnova(java.util.List<? extends java.lang.Number> categories,
java.util.List<? extends java.lang.Number> outcomes)
categories - these should be distinct values -- practically speaking, ints would have been better.
double[] for simplicityoutcomes -
public static RegressionUtilities.AnovaResult oneWayAnova(double[] categories,
double[] outcomes)
categories - these should be distinct values -- practically speaking, ints would have been better.
double[] for simplicityoutcomes -
public static double[] robustRegression(double[] xset,
double[] yset)
public static double[] robustRegression(double[] xset,
double[] yset,
int millis)
public static double predictYFromX(double slope,
double intercept,
double x)
slope - intercept - x -
public static double predictXFromY(double slope,
double intercept,
double y)
slope - intercept -
public static double[] modalRegression(double[] xset,
double[] yset)
throws java.io.IOException
xset - yset -
java.io.IOException
public static double[] modalRegression(double[] xset,
double[] yset,
int degree)
throws java.io.IOException
xset - yset - degree - The degree of the polynomial. Minimum 1
java.io.IOException
public static java.lang.Integer[] selectIndexesWithLowAbsoluteSomething(double[] somethings,
double maxSomething)
public static double mapValueUsingCoefficients(double[] coefficients,
double valueToMap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||