Documentation ¶
Index ¶
- Constants
- func AggregateStats() error
- func AverageLink(mat *Matrix2D, i, j, k, ni, nj int) float64
- func CompleteLink(mat *Matrix2D, i, j, k int) float64
- func GetPriceInChaos(j *db.DBJewel, rates map[string]float64) (int, bool)
- func HCluster(data []float64) [][]float64
- func SingleLink(mat *Matrix2D, i, j, k int) float64
- func WardMethodLink(mat *Matrix2D, i, j, k, ni, nj, nk int) float64
- type Boxplot
- type DendrogramStrata
- type IndexCluster
- type Matrix2D
- func (m *Matrix2D) AddRowAndCol() *Matrix2D
- func (m *Matrix2D) Get(i int) float64
- func (m *Matrix2D) Get2D(x, y int) float64
- func (m *Matrix2D) Print()
- func (m *Matrix2D) RemoveCols(ns []int) *Matrix2D
- func (m *Matrix2D) RemoveRows(ns []int) *Matrix2D
- func (m *Matrix2D) Set(i int, v float64)
- func (m *Matrix2D) Set2D(x, y int, v float64)
- func (m *Matrix2D) Size() int
Constants ¶
View Source
const DATE_CUTOFF = 48 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func AggregateStats ¶
func AggregateStats() error
func AverageLink ¶
func CompleteLink ¶
func HCluster ¶
Performs hierarchical clustering using average linkage https://beginningwithml.wordpress.com/2019/04/17/11-3-hierarchical-clustering/
func SingleLink ¶
func WardMethodLink ¶
Types ¶
type DendrogramStrata ¶
type DendrogramStrata struct { Clusters []IndexCluster `json:"clusters"` Height float64 `json:"height"` }
type IndexCluster ¶
type IndexCluster []int
type Matrix2D ¶
func NewMatrix2D ¶
func (*Matrix2D) AddRowAndCol ¶
Adds a row to the front of the matrix
func (*Matrix2D) RemoveCols ¶
func (*Matrix2D) RemoveRows ¶
Click to show internal directories.
Click to hide internal directories.