classstreamveci.java

来自「用于multivariate时间序列分类」· Java 代码 · 共 47 行

JAVA
47
字号
package tclass;   import java.io.*; /**  * Interface for a set of streams, including the classification.   * <p>  * When you think about it, the classification of a set of instances  * and the instances themselves are separate. For example, a different  * representation of the stream still has the same class.   * This technique of having a representation for streams and classifications  * separately simplifies representation conversion (which, as you can guess,   * we do in several places in the code, since representation conversion  * is the basis of the learning algorithm).   * <p>  * You should make sure that the classification vector and the vector of streams  * are the same size.   * <p>  * @author Waleed Kadous  * @version $Id: ClassStreamVecI.java,v 1.1.1.1 2002/06/28 07:36:16 waleed Exp $  */public interface ClassStreamVecI extends Cloneable, Serializable {    public boolean hasClassification();         public StreamVecI getStreamVec();         public void setStreamVec(StreamVecI sv);    public ClassificationVecI  getClassVec();     public void setClassVec(ClassificationVecI classes);         /**     * Adds an instance to both.     */       public void add(StreamI strm, ClassificationI classn);     /**     * Get the size of the current stream     */         public int size();     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?