|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDecisionRegion
public class DecisionRegion
class: DecisionRegion class that stores the point of the various decision regions computed
Field Summary | |
---|---|
java.util.Vector<DataSet> |
decisionRegion
|
java.util.Vector<MyPoint> |
guesses
|
Method Summary | |
---|---|
void |
addPoint(MyPoint p,
java.lang.String name)
add a point to the deciosion region |
void |
addRegion(java.util.Vector<MyPoint> vec)
add a set a decision region points |
void |
addRegion(java.util.Vector<MyPoint> vec,
java.lang.String name)
add a set a decision region points |
void |
clearAllRegions()
clears all decision regions |
void |
clearRegion(java.lang.String name)
clears the specified decision region |
DecisionRegion |
copy()
|
java.util.Vector<MyPoint> |
getGuesses()
method retrieves the initial guesses - means of the data sets |
int |
getNumRegions()
get the number of data sets currently stored |
java.util.Vector<MyPoint> |
getRegion(int index)
method retrieves a given data set based on the index |
java.util.Vector<MyPoint> |
getRegion(java.lang.String name)
get the specified decision region |
java.util.Vector<DataSet> |
getRegions()
|
void |
setGuesses(java.util.Vector<MyPoint> vec)
method sets the initial guesses - means of the data sets |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Vector<MyPoint> guesses
public java.util.Vector<DataSet> decisionRegion
Method Detail |
---|
public java.util.Vector<MyPoint> getRegion(java.lang.String name)
name
- name of the decision region
public int getNumRegions()
public java.util.Vector<MyPoint> getRegion(int index)
index
- the index of the data set
public java.util.Vector<MyPoint> getGuesses()
public void setGuesses(java.util.Vector<MyPoint> vec)
vec
- initial guessespublic void addRegion(java.util.Vector<MyPoint> vec)
vec
- decision region pointspublic void addRegion(java.util.Vector<MyPoint> vec, java.lang.String name)
vec
- decision region pointsname
- name of the decision regionpublic void addPoint(MyPoint p, java.lang.String name)
p
- decision region pointname
- name of the decision regionpublic void clearRegion(java.lang.String name)
name
- name of the decision regionpublic void clearAllRegions()
public java.util.Vector<DataSet> getRegions()
public DecisionRegion copy()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |