Documentation
¶
Index ¶
- Constants
- Variables
- type Feature
- func (f *Feature) Max() float64
- func (f *Feature) Min() float64
- func (f *Feature) Score(other *Feature) float64
- func (f *Feature) Std() float64
- func (f *Feature) String() string
- func (f *Feature) Update(sample *samples.Sample, nSamples int)
- func (f *Feature) Value() float64
- func (f *Feature) Var() float64
- type FeatureMap
- type FeatureType
Constants ¶
View Source
const XMassCenter = 0
View Source
const YMassCenter = 1
Variables ¶
View Source
var FeatureFlags = map[FeatureType]bool{ LengthFeatureType: true, GradientFeatureType: true, AspectFeatureType: true, HOGFeatureType: true, CornersFeatureType: false, MassCenterXFeatureType: true, MassCenterYFeatureType: true, }
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
func NewAspectFeature ¶
func NewAspectFeature() *Feature
func NewCornersFeature ¶
func NewCornersFeature() *Feature
func NewGradientFeature ¶
func NewGradientFeature() *Feature
func NewHOGFeature ¶
func NewHOGFeature() *Feature
func NewLengthFeature ¶
func NewLengthFeature() *Feature
func NewMassCenterFeature ¶
type FeatureMap ¶
type FeatureMap map[FeatureType]*Feature
func (FeatureMap) GoString ¶
func (m FeatureMap) GoString() string
type FeatureType ¶
type FeatureType int
const ( LengthFeatureType FeatureType = iota GradientFeatureType AspectFeatureType HOGFeatureType CornersFeatureType MassCenterXFeatureType MassCenterYFeatureType )
func (FeatureType) String ¶
func (t FeatureType) String() string
Click to show internal directories.
Click to hide internal directories.