|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.ibase.SVarSet
public class SVarSet
implements set of variables (aka dataset, used as data source)
which consists basically of a set of variables (of class SVar
) and
a marker (of class SMarker
).
Field Summary | |
---|---|
int |
classifierCounter
|
int |
globalMisclassVarID
|
int |
globalResudialStat1ID
|
int |
globalResudialStat2ID
|
protected SMarker |
mark
marker associated with this dataset |
protected java.lang.String |
name
dataset name |
int |
regressionCounter
|
protected java.util.List |
vars
list of SVar objects - the variables |
Constructor Summary | |
---|---|
SVarSet()
default constructor of empty dataset |
Method Summary | |
---|---|
int |
add(SVar v)
add a new variable to the dataset |
SVar |
at(int i)
returns variable object at specified index |
SVar |
byName(java.lang.String nam)
returns variable object specified by name |
int |
count()
returns number of variables in this dataset |
java.lang.Object |
data(int col,
int row)
returns data value of a variable specified by variable index and row index |
java.lang.Object |
data(java.lang.String nam,
int row)
returns data value of a variable specified by name and row index |
java.util.Enumeration |
elements()
returns enumeration of all variable objects in this dataset |
boolean |
Export(java.io.PrintStream p)
|
boolean |
Export(java.io.PrintStream p,
boolean all)
|
boolean |
Export(java.io.PrintStream p,
boolean all,
int[] vars)
|
SMarker |
getMarker()
returns the marker of this dataset |
java.lang.String |
getName()
get dataset name |
int |
indexOf(java.lang.String nam)
returns the index of a variable specified by its name |
void |
insert(int index,
SVar v)
add a new empty variable to the dataset |
void |
insert(java.lang.String name,
int index,
SVar v)
|
boolean |
insertCaseAt(int index)
add an empty case to the set |
int |
length()
|
void |
move(int from,
int to)
move a variable's to a new index |
void |
printSummary()
|
void |
remove(int index)
removes a variable of the dataset at specified index |
boolean |
removeCaseAt(int index)
delete a case of the set |
void |
replace(int i,
SVar v)
repaces a variable at the specified index. |
void |
setMarker(SMarker m)
sets the marker for this dataset |
void |
setName(java.lang.String s)
set dataset name |
int[] |
whereis(java.lang.Object o,
int c_off,
int r_off)
returns coordiantes where searched Object was found |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List vars
SVar
objects - the variables
protected SMarker mark
protected java.lang.String name
public int globalMisclassVarID
public int globalResudialStat1ID
public int globalResudialStat2ID
public int classifierCounter
public int regressionCounter
Constructor Detail |
---|
public SVarSet()
Method Detail |
---|
public void setMarker(SMarker m)
m
- markerpublic SMarker getMarker()
public void setName(java.lang.String s)
s
- namepublic java.lang.String getName()
public int length()
public int add(SVar v)
v
- variable
public void insert(int index, SVar v)
index
- indexsize
- size of SVarisnum
- numberscat
- categorical
/* added 28.12.03 MHpublic void insert(java.lang.String name, int index, SVar v)
public void move(int from, int to)
from
- from indexto
- to index
/* added 24.02.04 MHpublic void remove(int index)
index
- indexpublic boolean insertCaseAt(int index)
index
- indexpublic boolean removeCaseAt(int index)
index
- indexpublic int indexOf(java.lang.String nam)
nam
- variable name
public SVar byName(java.lang.String nam)
nam
- variable name
null
if not found.public SVar at(int i)
i
- index
null
if index out of rangepublic void replace(int i, SVar v)
public java.lang.Object data(java.lang.String nam, int row)
nam
- variable namerow
- row index
null
if out of range)public java.lang.Object data(int col, int row)
col
- variable indexrow
- row index
null
if out of range)public int[] whereis(java.lang.Object o, int c_off, int r_off)
o
- o Object to search forc_off
- c_off search from this case(x) onr_off
- r_off search from this case(y) on
public java.util.Enumeration elements()
SVar
)public int count()
public boolean Export(java.io.PrintStream p, boolean all)
public boolean Export(java.io.PrintStream p)
public boolean Export(java.io.PrintStream p, boolean all, int[] vars)
public void printSummary()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |