MOA 12.03
Real Time Analytics for Data Streams
ClusteringStream.java
Go to the documentation of this file.
00001 /*
00002  *    ClusteringStream.java
00003  *    Copyright (C) 2010 RWTH Aachen University, Germany
00004  *    @author Jansen ([email protected])
00005  *
00006  *    This program is free software; you can redistribute it and/or modify
00007  *    it under the terms of the GNU General Public License as published by
00008  *    the Free Software Foundation; either version 3 of the License, or
00009  *    (at your option) any later version.
00010  *
00011  *    This program is distributed in the hope that it will be useful,
00012  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *    GNU General Public License for more details.
00015  *
00016  *    You should have received a copy of the GNU General Public License
00017  *    along with this program. If not, see <http://www.gnu.org/licenses/>.
00018  *    
00019  */
00020 
00021 package moa.streams.clustering;
00022 
00023 import moa.options.AbstractOptionHandler;
00024 import moa.options.FloatOption;
00025 import moa.options.IntOption;
00026 import moa.streams.InstanceStream;
00027 
00028 public abstract class ClusteringStream extends AbstractOptionHandler implements InstanceStream{
00029     public IntOption decayHorizonOption = new IntOption("decayHorizon", 'h',
00030                     "Decay horizon", 1000, 0, Integer.MAX_VALUE);
00031 
00032     public FloatOption decayThresholdOption = new FloatOption("decayThreshold", 't',
00033                     "Decay horizon threshold", 0.01, 0, 1);
00034 
00035     public IntOption evaluationFrequencyOption = new IntOption("evaluationFrequency", 'e',
00036                     "Evaluation frequency", 1000, 0, Integer.MAX_VALUE);
00037 
00038     public IntOption numAttsOption = new IntOption("numAtts", 'a',
00039                     "The number of attributes to generate.", 2, 0, Integer.MAX_VALUE);
00040 
00041     public int getDecayHorizon(){
00042         return decayHorizonOption.getValue();
00043     }
00044 
00045     public double getDecayThreshold(){
00046         return decayThresholdOption.getValue();
00047     }
00048 
00049     public int getEvaluationFrequency(){
00050         return evaluationFrequencyOption.getValue();
00051     }
00052 
00053 
00054 }
 All Classes Namespaces Files Functions Variables Enumerations