public class Puk extends CachedKernel implements TechnicalInformationHandler
-D Enables debugging output (if available) to be printed. (default: off)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-O <num> The Omega parameter. (default: 1.0)
-S <num> The Sigma parameter. (default: 1.0)
| Constructor and Description |
|---|
Puk()
default constructor - does nothing.
|
Puk(Instances data,
int cacheSize,
double omega,
double sigma)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildKernel(Instances data)
builds the kernel with the given data.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this kernel.
|
double |
getOmega()
Gets the omega value.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Kernel.
|
java.lang.String |
getRevision()
Returns the revision string.
|
double |
getSigma()
Gets the sigma value.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
java.lang.String |
globalInfo()
Returns a string describing the kernel
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
omegaTipText()
Returns the tip text for this property
|
void |
setOmega(double value)
Sets the omega value.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSigma(double value)
Sets the sigma value.
|
java.lang.String |
sigmaTipText()
Returns the tip text for this property
|
java.lang.String |
toString()
returns a string representation for the Kernel
|
cacheSizeTipText, clean, eval, getCacheSize, numCacheHits, numEvals, setCacheSizedebugTipText, forName, getChecksTurnedOff, getDebug, getDoNotCheckCapabilities, makeCopies, makeCopy, setChecksTurnedOff, setDebug, setDoNotCheckCapabilitiesequals, getClass, hashCode, notify, notifyAll, wait, wait, waitmakeCopypublic Puk()
public Puk(Instances data, int cacheSize, double omega, double sigma) throws java.lang.Exception
data - the data to usecacheSize - the size of the cacheomega - the exponentsigma - the bandwidthjava.lang.Exception - if something goes wrongpublic java.lang.String globalInfo()
globalInfo in class Kernelpublic TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class CachedKernelpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Enables debugging output (if available) to be printed. (default: off)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-O <num> The Omega parameter. (default: 1.0)
-S <num> The Sigma parameter. (default: 1.0)
setOptions in interface OptionHandlersetOptions in class CachedKerneloptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class CachedKernelpublic void setOmega(double value)
value - the omega valuepublic double getOmega()
public java.lang.String omegaTipText()
public void setSigma(double value)
value - the sigma valuepublic double getSigma()
public java.lang.String sigmaTipText()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class KernelCapabilitiespublic void buildKernel(Instances data) throws java.lang.Exception
buildKernel in class CachedKerneldata - the data to base the kernel onjava.lang.Exception - if something goes wrongpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Kernel