public abstract class Divergence extends water.Iced<Divergence>
Modifier and Type | Field and Description |
---|---|
static double |
ZERO_TO_DIVIDE |
Constructor and Description |
---|
Divergence() |
Modifier and Type | Method and Description |
---|---|
double |
gain(double prY1CT1,
double prY1CT0,
double prL,
double prLY1CT1,
double prLY1CT0,
double prR,
double prRY1CT1,
double prRY1CT0)
Calculate overall gain as divergence between split gain and node gain.
|
abstract double |
metric(double prCT1,
double prCT0)
Calculate distance divergence metric between two probabilities.
|
double |
node(double prCT1,
double prCT0)
Calculate distance metric between two probabilities in the node.
|
abstract double |
norm(double prCT1,
double prCT0,
double prLCT1,
double prLCT0)
Calculate normalization factor to normalize gain.
|
double |
split(double prL,
double prLY1CT1,
double prLY1CT0,
double prR,
double prRY1CT1,
double prRY1CT0)
Calculate gain after split
|
double |
value(double prY1CT1,
double prY1CT0,
double prL,
double prLY1CT1,
double prLY1CT0,
double prR,
double prRY1CT1,
double prRY1CT0,
double prCT1,
double prCT0,
double prLCT1,
double prLCT0)
Calculate normalized gain as result value to select best split.
|
public abstract double metric(double prCT1, double prCT0)
prCT1
- prCT0
- public double node(double prCT1, double prCT0)
prCT1
- probability of treatment groupprCT0
- probability of control grouppublic double split(double prL, double prLY1CT1, double prLY1CT0, double prR, double prRY1CT1, double prRY1CT0)
prL
- probability of response in left nodeprLY1CT1
- probability of response = 1 in treatment group in left nodeprLY1CT0
- probability of response = 1 in control group in left nodeprR
- probability of response in right nodeprRY1CT1
- probability of response = 1 in treatment group in right nodeprRY1CT0
- probability of response = 1 in control group in right nodepublic double gain(double prY1CT1, double prY1CT0, double prL, double prLY1CT1, double prLY1CT0, double prR, double prRY1CT1, double prRY1CT0)
prY1CT1
- probability of response = 1 in treatment group before splitprY1CT0
- probability of response = 1 in control group beforeprL
- probability of response in left nodeprLY1CT1
- probability of response = 1 in treatment group in left nodeprLY1CT0
- probability of response = 1 in control group in left nodeprR
- probability of response in right nodeprRY1CT1
- probability of response = 1 in treatment group in right nodeprRY1CT0
- probability of response = 1 in control group in right nodepublic abstract double norm(double prCT1, double prCT0, double prLCT1, double prLCT0)
prCT1
- probability of treatment groupprCT0
- probability of control groupprLCT1
- probability of treatment group in left nodeprLCT0
- probability of control group in left nodepublic double value(double prY1CT1, double prY1CT0, double prL, double prLY1CT1, double prLY1CT0, double prR, double prRY1CT1, double prRY1CT0, double prCT1, double prCT0, double prLCT1, double prLCT0)
prY1CT1
- probability of response = 1 in treatment group before splitprY1CT0
- probability of response = 1 in control group beforeprL
- probability of response in left nodeprLY1CT1
- probability of response = 1 in treatment group in left nodeprLY1CT0
- probability of response = 1 in control group in left nodeprR
- probability of response in right nodeprRY1CT1
- probability of response = 1 in treatment group in right nodeprRY1CT0
- probability of response = 1 in control group in right nodeprCT1
- probability of treatment groupprCT0
- probability of control groupprLCT1
- probability of treatment group in left nodeprLCT0
- probability of control group in left node