Codota Logo
Center.flushInput
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Signify that this batch of input to the filter is finished. 
 * If the filter requires all instances prior to filtering,
 * output() may now be called to retrieve the filtered instances.
 *
 * @return true             if there are instances pending output
 * @throws IllegalStateException     if no input structure has been defined
 */
public boolean batchFinished() {
 if (getInputFormat() == null)
  throw new IllegalStateException("No input instance format defined");
 if (m_Means == null) {
  Instances input = getInputFormat();
  m_Means = new double[input.numAttributes()];
  for (int i = 0; i < input.numAttributes(); i++) {
   if (input.attribute(i).isNumeric() &&
       (input.classIndex() != i)) {
    m_Means[i] = input.meanOrMode(i);
   }
  }
  // Convert pending input instances
  for (int i = 0; i < input.numInstances(); i++)
   convertInstance(input.instance(i));
 }
 // Free memory
 flushInput();
 m_NewBatch = true;
 return (numPendingOutput() != 0);
}
origin: Waikato/weka-trunk

/**
 * Signify that this batch of input to the filter is finished. 
 * If the filter requires all instances prior to filtering,
 * output() may now be called to retrieve the filtered instances.
 *
 * @return true             if there are instances pending output
 * @throws IllegalStateException     if no input structure has been defined
 */
public boolean batchFinished() {
 if (getInputFormat() == null)
  throw new IllegalStateException("No input instance format defined");
 if (m_Means == null) {
  Instances input = getInputFormat();
  m_Means = new double[input.numAttributes()];
  for (int i = 0; i < input.numAttributes(); i++) {
   if (input.attribute(i).isNumeric() &&
       (input.classIndex() != i)) {
    m_Means[i] = input.meanOrMode(i);
   }
  }
  // Convert pending input instances
  for (int i = 0; i < input.numInstances(); i++)
   convertInstance(input.instance(i));
 }
 // Free memory
 flushInput();
 m_NewBatch = true;
 return (numPendingOutput() != 0);
}
weka.filters.unsupervised.attributeCenterflushInput

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.
  • getInputFormat
  • input
    Input an instance for filtering. Filter requires all training instances be read before producing out
  • numPendingOutput
  • output
  • push
  • resetQueue
  • runFilter
  • setInputFormat
    Sets the format of the input instances.
  • runFilter,
  • setInputFormat,
  • setOutputFormat,
  • setIgnoreClass

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now