rvl.stat.anova
Class Term
java.lang.Object
|
+--rvl.stat.anova.Term
- Direct Known Subclasses:
- Factor, Residual
- public class Term
- extends java.lang.Object
One term in a balanced anova model. A Term is simply the cross of
two or more Factors. Any nesting information is contained in
the included Factors. Note also that Factor is a subclass
of Term, obviating the extra work of constructing Terms
for main effects (or purely nested effects, for that matter).
- See Also:
Factor
Constructor Summary |
Term()
DON'T USE THIS. |
Term(Factor[] f)
Construct a new Term defined as the interaction of factors f[]. |
Term(Term t,
Factor f)
Construct a new Term defined as the interaction of t and f |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fac
protected Factor[] fac
fullName
protected java.lang.StringBuffer fullName
nestedIn
protected Factor[] nestedIn
Term
public Term()
- DON'T USE THIS. IT EXISTS ONLY SO THAT Factor CAN BE A SUBCLASS
Term
public Term(Factor[] f)
- Construct a new Term defined as the interaction of factors f[].
Term
public Term(Term t,
Factor f)
- Construct a new Term defined as the interaction of t and f
setNest
protected void setNest(Factor[] n)
getNest
public Factor[] getNest()
order
public int order()
- Returns:
- the number of interacting factors (not counting nests)
factor
public Factor factor(int i)
- Returns:
- the factor at index i
getFactors
public Factor[] getFactors()
- Returns:
- the factors in this term
getName
public java.lang.String getName()
- Returns:
- the full name of the term
isRandom
public boolean isRandom()
- Returns:
- whether or not the term contains random factors
containsTerm
public boolean containsTerm(Term t)
- Returns:
- whether this term contains all the factors in t
containsFactor
public boolean containsFactor(Factor f)
- Returns:
- whether this term contains f
overlaps
public boolean overlaps(Factor f)
- Returns:
- whether there is any overlap in the factors in this term and f
overlaps
public boolean overlaps(Term t)
- Returns:
- whether there is any overlap in the factors in this term and f
minus
public Term minus(Factor[] f)
- Returns:
- this term with the factors removed
df
public int df()
span
public int span()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object