Documentation
¶
Index ¶
- func Anonymize(source RecordSource, factory GeneralizerFactory, k int, l int, dim int, ...) error
- func ExpNumber(mean float64) float64
- func GaussianNumber(loc float64, scale float64) float64
- func IQR(values []float64) float64
- func LaplaceNumber() float64
- func Mean(listValues []float64) (m float64)
- func Median(listValues []float64) (m float64)
- func Std(listValues []float64) (s float64)
- func Sum(listValues []float64) (sum float64)
- type AggregationAnonymizer
- type AnonymizedRecord
- type Anonymizer
- type Cluster
- type CodingAnonymizer
- type Debugger
- type GeneralAnonymizer
- type Generalizer
- type GeneralizerFactory
- type InfosRecord
- type KDTree
- type KDTreeFactory
- type NoAnonymizer
- type NoDebugger
- type NoiseAnonymizer
- type Quartiles
- type Record
- type RecordSink
- type RecordSource
- type SequenceDebugger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Anonymize ¶
func Anonymize(source RecordSource, factory GeneralizerFactory, k int, l int, dim int, anonymyzer Anonymizer, sink RecordSink, debugger Debugger) error
func GaussianNumber ¶
func LaplaceNumber ¶
func LaplaceNumber() float64
Types ¶
type AggregationAnonymizer ¶
type AggregationAnonymizer struct {
// contains filtered or unexported fields
}
func NewAggregationAnonymizer ¶
func NewAggregationAnonymizer(typeAgg string) AggregationAnonymizer
type AnonymizedRecord ¶
type AnonymizedRecord struct {
// contains filtered or unexported fields
}
func (AnonymizedRecord) QuasiIdentifer ¶
func (ar AnonymizedRecord) QuasiIdentifer() []float32
func (AnonymizedRecord) Row ¶
func (ar AnonymizedRecord) Row() map[string]interface{}
func (AnonymizedRecord) Sensitives ¶
func (ar AnonymizedRecord) Sensitives() []interface{}
type Anonymizer ¶
type CodingAnonymizer ¶
type CodingAnonymizer struct{}
func NewCodingAnonymizer ¶
func NewCodingAnonymizer() CodingAnonymizer
type Debugger ¶
func NewNoDebugger ¶
func NewNoDebugger() Debugger
type GeneralAnonymizer ¶
type GeneralAnonymizer struct {
// contains filtered or unexported fields
}
func NewGeneralAnonymizer ¶
func NewGeneralAnonymizer() GeneralAnonymizer
type Generalizer ¶
type GeneralizerFactory ¶
type GeneralizerFactory interface {
New(k int, l int, dim int) Generalizer
}
type InfosRecord ¶
type InfosRecord struct {
// contains filtered or unexported fields
}
func (InfosRecord) QuasiIdentifer ¶
func (ir InfosRecord) QuasiIdentifer() []float32
func (InfosRecord) Row ¶
func (ir InfosRecord) Row() map[string]interface{}
func (InfosRecord) Sensitives ¶
func (ir InfosRecord) Sensitives() []interface{}
type KDTreeFactory ¶
type KDTreeFactory struct{}
func NewKDTreeFactory ¶
func NewKDTreeFactory() KDTreeFactory
func (KDTreeFactory) New ¶
func (f KDTreeFactory) New(k int, l int, dim int) Generalizer
type NoAnonymizer ¶
type NoAnonymizer struct{}
func NewNoAnonymizer ¶
func NewNoAnonymizer() NoAnonymizer
type NoDebugger ¶
type NoDebugger struct{}
func (NoDebugger) Information ¶
func (d NoDebugger) Information(rec Record, cluster Cluster) Record
type NoiseAnonymizer ¶
type NoiseAnonymizer struct {
// contains filtered or unexported fields
}
func NewNoiseAnonymizer ¶
func NewNoiseAnonymizer(mechanism string) NoiseAnonymizer
type RecordSink ¶
type RecordSource ¶
type SequenceDebugger ¶
type SequenceDebugger struct {
// contains filtered or unexported fields
}
func NewSequenceDebugger ¶
func NewSequenceDebugger(key string) SequenceDebugger
func (SequenceDebugger) Information ¶
func (d SequenceDebugger) Information(rec Record, cluster Cluster) Record
Click to show internal directories.
Click to hide internal directories.