congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Center.resetQueue
Code IndexAdd Tabnine to your IDE (free)

How to use
resetQueue
method
in
weka.filters.unsupervised.attribute.Center

Best Java code snippets using weka.filters.unsupervised.attribute.Center.resetQueue (Showing top 2 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Input an instance for filtering. Filter requires all
 * training instances be read before producing output.
 *
 * @param instance             the input instance
 * @return true             if the filtered instance may now be 
 *                     collected with output().
 * @throws IllegalStateException     if no input format has been set.
 */
public boolean input(Instance instance) {
 if (getInputFormat() == null)
  throw new IllegalStateException("No input instance format defined");
 if (m_NewBatch) {
  resetQueue();
  m_NewBatch = false;
 }
 
 if (m_Means == null) {
  bufferInput(instance);
  return false;
 } 
 else {
  convertInstance(instance);
  return true;
 }
}
origin: Waikato/weka-trunk

/**
 * Input an instance for filtering. Filter requires all
 * training instances be read before producing output.
 *
 * @param instance             the input instance
 * @return true             if the filtered instance may now be 
 *                     collected with output().
 * @throws IllegalStateException     if no input format has been set.
 */
public boolean input(Instance instance) {
 if (getInputFormat() == null)
  throw new IllegalStateException("No input instance format defined");
 if (m_NewBatch) {
  resetQueue();
  m_NewBatch = false;
 }
 
 if (m_Means == null) {
  bufferInput(instance);
  return false;
 } 
 else {
  convertInstance(instance);
  return true;
 }
}
weka.filters.unsupervised.attributeCenterresetQueue

Popular methods of Center

  • <init>
  • batchFinished
    Signify that this batch of input to the filter is finished. If the filter requires all instances pri
  • bufferInput
  • convertInstance
    Convert a single instance over. The converted instance is added to the end of the output queue.
  • flushInput
  • getInputFormat
  • input
    Input an instance for filtering. Filter requires all training instances be read before producing out
  • numPendingOutput
  • output
  • push
  • runFilter
  • setInputFormat
    Sets the format of the input instances.
  • runFilter,
  • setInputFormat,
  • setOutputFormat,
  • setIgnoreClass

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now