Proposals:Refactoring Statistics Framework 2007 Migration Users Guide: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 30: | Line 30: | ||
* FrequencyType GetFrequencyByIndex(int index) const : was removed. This method becomes obsolete when the inconsistencies between index and identifier are removed. | * FrequencyType GetFrequencyByIndex(int index) const : was removed. This method becomes obsolete when the inconsistencies between index and identifier are removed. | ||
* InstanceIdentifier GetInstanceIdentifier(int index) const; was removed. This method becomes obsolete when the inconsistencies between index and identifier are removed. | * InstanceIdentifier GetInstanceIdentifier(int index) const; was removed. This method becomes obsolete when the inconsistencies between index and identifier are removed. | ||
* Iterators | |||
** Common | |||
*** GetInstanceIdentifier() now returns the integer distance to the Begin() element. Before it used to return the index of the instance in the real sample. | |||
** ConstIterator | |||
** non-const Iterator | |||
|| | || | ||
* The basic principle followed now in the design of the Subsample class is that the subsample should behave as a sample. That is, a user should be able to use a Subsample class in any algorithm that is expecting a Sample. | * The basic principle followed now in the design of the Subsample class is that the subsample should behave as a sample. That is, a user should be able to use a Subsample class in any algorithm that is expecting a Sample. | ||
Line 36: | Line 40: | ||
** Now throws an exception if the Id is larger than the Size of the Sample. | ** Now throws an exception if the Id is larger than the Size of the Sample. | ||
** Now it calls Modified() | ** Now it calls Modified() | ||
* Iterators | |||
** Now the non-const Iterator derives from the ConstIterator | |||
|- | |- | ||
| ListSampleBase || Deprecated. The class was unecessary, it was providing only a Search() method that should in fact be provided by a process class, not a data container. | | ListSampleBase || Deprecated. The class was unecessary, it was providing only a Search() method that should in fact be provided by a process class, not a data container. |
Revision as of 18:50, 23 April 2007
How To Migrate your code to the New Statistics Framework
Measurement Containers
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Sample | Refactored |
|
|
Subsample | Refactored |
|
|
ListSampleBase | Deprecated. The class was unecessary, it was providing only a Search() method that should in fact be provided by a process class, not a data container. |
|
|
ListSample | Refactored | The iterators API was updated, const-correctness is now enforced | |
MembershipSample | Refactored |
|
|
Histogram | Refactored | ||
VariableDimensionHistogram | |||
KdTree | Refactored |
Frequency Containers
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
DenseFrequencyContainer | |||
SparseFrequencyContainer |
Process Objects
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
SampleClassifier | |||
SampleClassifierWithMask |
Traits
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
MeasurementVectorTraits | Refactored (same name) |
|
MeanShift
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Adaptors
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Univariate Distributions
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Algorithms
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Calculators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
CovarianceCalculator | Refactored into CovarianceFilter | SetMean() because it was inconsistent | GetOutput(), SetInput(), GetMean() |
GreyLevelCooccurrenceMatrixTextureCoefficientsCalculator | Refactored into HistogramToTextureFeaturesFilter | now derives from ProcessObject, SetInput(), GetOutput() | |
MeanCalculator | Refactored into MeanFilter | SetSample() method replaced with SetInput() | now derives from ProcessObject |
ScalarImageTextureCalculator | Refactored into (???Filter) | ||
WeightedCovarianceCalculator | Refactored into WeightedCovarianceFilter |
|
|
WeightedMeanCalculator | Refactored into WeightedMeanFilter |
|
|
Generators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Filters
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Multivariate Density Functions
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Distance Metrics
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Components
Class Name | Fate | Deprecated API | New API |
---|---|---|---|
Estimators
Class Name | Fate | Deprecated API | New API |
---|---|---|---|