ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkParticleSwarmOptimizer.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkParticleSwarmOptimizer_h
00019 #define __itkParticleSwarmOptimizer_h
00020 
00021 #include "itkParticleSwarmOptimizerBase.h"
00022 
00023 namespace itk
00024 {
00059 class ITK_EXPORT ParticleSwarmOptimizer :
00060   public ParticleSwarmOptimizerBase
00061 {
00062 public:
00064   typedef ParticleSwarmOptimizer              Self;
00065   typedef ParticleSwarmOptimizerBase          Superclass;
00066   typedef SmartPointer<Self>                  Pointer;
00067   typedef SmartPointer<const Self>            ConstPointer;
00068 
00070   itkNewMacro( Self )
00071 
00072 
00073   itkTypeMacro( ParticleSwarmOptimizer, ParticleSwarmOptimizerBase )
00074 
00087   itkSetMacro( InertiaCoefficient, double )
00088   itkGetMacro( InertiaCoefficient, double )
00089   itkSetMacro( PersonalCoefficient, double )
00090   itkGetMacro( PersonalCoefficient, double )
00091   itkSetMacro( GlobalCoefficient, double )
00092   itkGetMacro( GlobalCoefficient, double )
00093 
00094 protected:
00095   ParticleSwarmOptimizer();
00096   virtual ~ParticleSwarmOptimizer();
00097   void PrintSelf(std::ostream& os, Indent indent) const;
00098   virtual void UpdateSwarm();
00099 
00100 private:
00101   ParticleSwarmOptimizer(const Self&); //purposely not implemented
00102   void operator=(const Self&);//purposely not implemented
00103 
00104   ParametersType::ValueType                    m_InertiaCoefficient;
00105   ParametersType::ValueType                    m_PersonalCoefficient;
00106   ParametersType::ValueType                    m_GlobalCoefficient;
00107 };
00108 
00109 } // end namespace itk
00110 
00111 #endif
00112