Documentation
¶
Overview ¶
Package plot provides functions for creating SOM-related plots.
Index ¶
- func Heatmap(title string, g plotter.GridXYZ, width, height int, categories []string, ...) (image.Image, error)
- func XY(title string, g plotter.XYer, size layer.Size, width, height int, ...) (image.Image, error)
- type FloatGrid
- type IntGrid
- type RandomPalette
- type SomLayerGrid
- type SomRowColXY
- type SomXY
- type TableXY
- type UMatrixGrid
- type WhitePalette
- type ZeroSizeLabel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RandomPalette ¶
type RandomPalette struct {
// contains filtered or unexported fields
}
func NewRandomPalette ¶
func NewRandomPalette(cols int) *RandomPalette
func (*RandomPalette) Colors ¶
func (p *RandomPalette) Colors() []color.Color
type SomLayerGrid ¶
func (*SomLayerGrid) Dims ¶
func (g *SomLayerGrid) Dims() (c, r int)
func (*SomLayerGrid) X ¶
func (g *SomLayerGrid) X(c int) float64
func (*SomLayerGrid) Y ¶
func (g *SomLayerGrid) Y(r int) float64
func (*SomLayerGrid) Z ¶
func (g *SomLayerGrid) Z(c, r int) float64
type SomRowColXY ¶
func (*SomRowColXY) Len ¶
func (s *SomRowColXY) Len() int
func (*SomRowColXY) XY ¶
func (s *SomRowColXY) XY(i int) (x, y float64)
type TableXY ¶
type TableXY struct {
XTable *table.Table
YTable *table.Table
XColumn int
YColumn int
XNorm norm.Normalizer
YNorm norm.Normalizer
}
type UMatrixGrid ¶
type UMatrixGrid struct {
UMatrix [][]float64
}
func (*UMatrixGrid) Dims ¶
func (g *UMatrixGrid) Dims() (c, r int)
func (*UMatrixGrid) X ¶
func (g *UMatrixGrid) X(c int) float64
func (*UMatrixGrid) Y ¶
func (g *UMatrixGrid) Y(r int) float64
func (*UMatrixGrid) Z ¶
func (g *UMatrixGrid) Z(c, r int) float64
type WhitePalette ¶
type WhitePalette struct{}
func (*WhitePalette) Colors ¶
func (p *WhitePalette) Colors() []color.Color
type ZeroSizeLabel ¶
type ZeroSizeLabel struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.