ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkInitializationBiasedParticleSwarmOptimizer.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 
00019 #ifndef __itkInitializationBiasedParticleSwarmOptimizer_h
00020 #define __itkInitializationBiasedParticleSwarmOptimizer_h
00021 
00022 #include "itkParticleSwarmOptimizerBase.h"
00023 
00024 namespace itk
00025 {
00071 class ITK_EXPORT InitializationBiasedParticleSwarmOptimizer :
00072   public ParticleSwarmOptimizerBase
00073 {
00074 public:
00076   typedef InitializationBiasedParticleSwarmOptimizer  Self;
00077   typedef ParticleSwarmOptimizerBase                  Superclass;
00078   typedef SmartPointer<Self>                          Pointer;
00079   typedef SmartPointer<const Self>                    ConstPointer;
00080 
00081   typedef double                                      CoefficientType;
00082 
00084   itkNewMacro( Self )
00085 
00086 
00087   itkTypeMacro( InitializationBiasedParticleSwarmOptimizer,
00088                 ParticleSwarmOptimizerBase )
00089 
00106   itkSetMacro( InertiaCoefficient, CoefficientType )
00107   itkGetMacro( InertiaCoefficient, CoefficientType )
00108   itkSetMacro( PersonalCoefficient, CoefficientType )
00109   itkGetMacro( PersonalCoefficient, CoefficientType )
00110   itkSetMacro( GlobalCoefficient, CoefficientType )
00111   itkGetMacro( GlobalCoefficient, CoefficientType )
00112   itkSetMacro( InitializationCoefficient, CoefficientType )
00113   itkGetMacro( InitializationCoefficient, CoefficientType )
00115 
00116 protected:
00117   InitializationBiasedParticleSwarmOptimizer();
00118   virtual ~InitializationBiasedParticleSwarmOptimizer() {};
00119   void PrintSelf(std::ostream& os, Indent indent) const;
00120   virtual void UpdateSwarm();
00121 
00122 private:
00123     //purposely not implemented
00124   InitializationBiasedParticleSwarmOptimizer(const Self&);
00125     //purposely not implemented
00126   void operator=(const Self&);
00127 
00128   ParametersType::ValueType                    m_InertiaCoefficient;
00129   ParametersType::ValueType                    m_PersonalCoefficient;
00130   ParametersType::ValueType                    m_GlobalCoefficient;
00131   ParametersType::ValueType                    m_InitializationCoefficient;
00132 };
00133 
00134 } // end namespace itk
00135 
00136 #endif
00137