|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.AbstractFlow
a class that represents a flow
Field Summary | |
int[] |
cases
cases connected to this flow |
int |
from
number of category of source variable |
int |
to
number of category of target variable |
double[] |
weights
weight values connected to this flow |
double |
xf
x-coordinate of the source of this flow |
double |
xt
x-coordinate of the target of this flow |
double |
yf
y-coordinate of the source of this flow |
double |
yt
y-coordinate of the target of this flow |
Constructor Summary | |
AbstractFlow(int fr,
int t,
int[] cas,
double[] weight,
double x1,
double y1,
double x2,
double y2)
Creates new AbstractFlow |
Method Summary | |
static java.util.Vector |
createFlows(CategorialVariable from,
CategorialVariable to,
ContinuousVariable weights,
ContinuousVariable x1,
ContinuousVariable y1,
ContinuousVariable x2,
ContinuousVariable y2,
boolean group)
returns a Vector of flows created from a set of variables |
double |
getSelWeight(Selectioner slect)
returns the selected value of weights |
double |
getWeight()
returns the sum of weights |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int from
public int to
public int[] cases
public double[] weights
public double xf
public double yf
public double xt
public double yt
Constructor Detail |
public AbstractFlow(int fr, int t, int[] cas, double[] weight, double x1, double y1, double x2, double y2)
fr
- category of sourcet
- category of targetcas
- cases connected to flowweight
- weights connected to flowx1
- x-coordinate of sourcey1
- y-coordinate of sourcex2
- x-coordinate of targety2
- y-coordinate of targetMethod Detail |
public double getWeight()
public double getSelWeight(Selectioner slect)
slect
- the Selectioner
public static java.util.Vector createFlows(CategorialVariable from, CategorialVariable to, ContinuousVariable weights, ContinuousVariable x1, ContinuousVariable y1, ContinuousVariable x2, ContinuousVariable y2, boolean group)
from
- source categrial variableto
- target category variableweights
- continuous weight variable, if null no weightsx1
- x-coordinates of sourcesy1
- y-coordinates of sourcesx2
- x-coordinates of targetsy2
- y-coordinates of targetsgroup
- a categorial variable for grouping, if null no grouping
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |