Documentation
¶
Index ¶
- type Cpaml
- func (c *Cpaml) AddToIndex(id string, t string) (bool, bool)
- func (c *Cpaml) AddToSet(id string, t string) (bool, bool)
- func (c *Cpaml) GetStats() Stats
- func (c *Cpaml) IsInIndex(id string) bool
- func (c *Cpaml) LookupSimilar(t string) (string, uint)
- func (c *Cpaml) RemoveFromIndex(idx uint, id string)
- func (c *Cpaml) RemoveStale(isForRemove func(id string) bool) int
- type Stats
- type TextInIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cpaml ¶
type Cpaml struct {
// contains filtered or unexported fields
}
func Init ¶
* Provide kmer length. Depend on your cases, 13 works well for English and user messages and comments. Works not so good with short strings (100 signs and shorter)
func (*Cpaml) AddToIndex ¶
* Add sample to index
func (*Cpaml) AddToSet ¶
* add sample to index if not added retrun true if sample was added return second true in case string cannot be added because has high kmer/length ration, mean repeated multiple times
func (*Cpaml) LookupSimilar ¶
return sample ID as given for AddToIndex and similarity 0-100
func (*Cpaml) RemoveFromIndex ¶
* remove from index. Recommended to use RemoveStale() instead
type TextInIndex ¶
Click to show internal directories.
Click to hide internal directories.