turner

package
v0.0.0-...-46eaa19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cluster

func Cluster(p *pals.Pile, h float64) []*pals.Pile

Cluster performs a clustering of images in the pile p to create a collection of piles where image ends are within h times the images length of the ends of the generated sub-pile. Clustering is seeded by the set of unique image intervals in order of decreasing depth.

func Range

func Range(p []*pals.Pile) (start, end int)

Range returns the start and end positions for all the members of p.

func Volume

func Volume(p *pals.Pile) int

Volume returns the number of bases contributing to the pile p.

Types

type ByDepth

type ByDepth []*pals.Pile

ByVolume allows a collection of pals.Pile to be sorted by the number images in each pile.

func (ByDepth) Len

func (p ByDepth) Len() int

func (ByDepth) Less

func (p ByDepth) Less(i, j int) bool

func (ByDepth) Swap

func (p ByDepth) Swap(i, j int)

type ByVolume

type ByVolume []*pals.Pile

ByVolume allows a collection of pals.Pile to be sorted by volume.

func (ByVolume) Len

func (p ByVolume) Len() int

func (ByVolume) Less

func (p ByVolume) Less(i, j int) bool

func (ByVolume) Swap

func (p ByVolume) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL