|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNLearning.Sampler
public class Sampler
Constructor Summary | |
---|---|
Sampler()
|
Method Summary | |
---|---|
SparseRelStruc |
makeCitationGraph(int numauthors,
double posauthors,
double meanpapers,
double meancites)
Build a structure representing authors, papers and citations numauthors: number of authors posauthors: probability of an author being a positive example (high h number) |
SparseRelStruc |
makeRandomColoredGraph(int size,
double edgeprob,
double redprob,
double blueprob)
Constructs a random graph (given by binary relation 'edge') over 'size' nodes. |
SparseRelStruc |
makeRandomGraph(int size,
double edgeprob,
boolean acyclic,
int compnum)
Constructs a random graph (given by binary relation 'edge') over 'size' nodes. |
SparseRelStruc |
makeRandomPedigree(int size,
double founderprop)
Constructs a random pedigree-like structure: nodes have either two or zero parents |
SparseRelStruc |
makeRandomTypedDomain(int size,
java.lang.String[] types,
double[] typeprobs)
Constructs a domain of size 'size' with objects of types 'types'. |
void |
makeSampleStruc(Primula pr)
|
SparseRelStruc |
makeSlotchainBase(int numoftype,
int numrels,
int numsuccs,
int numtypes,
int numcomp)
Constructs a random structure for investigating slotchain like dependencies: domain consists of 'numtypes' different types of objects; 'numoftype' objects of each type. |
OneStrucData |
sampleOneStrucData(double pcmissing)
Samples OneStrucData with a percentage of pcmissing values missing (completely at random) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sampler()
Method Detail |
---|
public void makeSampleStruc(Primula pr)
public OneStrucData sampleOneStrucData(double pcmissing)
public SparseRelStruc makeRandomGraph(int size, double edgeprob, boolean acyclic, int compnum)
public SparseRelStruc makeRandomColoredGraph(int size, double edgeprob, double redprob, double blueprob)
public SparseRelStruc makeRandomTypedDomain(int size, java.lang.String[] types, double[] typeprobs)
public SparseRelStruc makeRandomPedigree(int size, double founderprop)
public SparseRelStruc makeSlotchainBase(int numoftype, int numrels, int numsuccs, int numtypes, int numcomp)
size
- numsuccs
- numtypes
-
public SparseRelStruc makeCitationGraph(int numauthors, double posauthors, double meanpapers, double meancites) throws RBNCompatibilityException, RBNSyntaxException
numauthors
-
RBNCompatibilityException
RBNSyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |