rank

package module
v0.6.1-0...-c4151a7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counts

type Counts []genome

func InsertSort

func InsertSort(m map[string]map[string]bool) Counts

func MapToCounts

func MapToCounts(m map[string]map[string]bool) Counts

func SliceToCounts

func SliceToCounts(id []string, ct []float64) Counts

Requires to slices of equal lengths The first contains the identifiers for the elements of the second Return a Counts struct for the given slices

func SortAbundance

func SortAbundance(id []string, ct []float64) Counts

Simple sorting of abundance table These slices are used to create the Counts type, which will be sorted.

func SortCounts

func SortCounts(m map[string]map[string]bool) Counts

func (Counts) InsertAt

func (c Counts) InsertAt(elem genome, pos int) Counts

func (Counts) Len

func (c Counts) Len() int

Sort interface definition to sort our Counts struct

func (Counts) Less

func (c Counts) Less(i, j int) bool

func (Counts) Swap

func (c Counts) Swap(i, j int)

type Ranks

type Ranks []rank

func InsertSortRanks

func InsertSortRanks(m map[string]float64) Ranks

func MapToRanks

func MapToRanks(m map[string]float64) Ranks

func SortRanks

func SortRanks(m map[string]float64) Ranks

func (Ranks) InsertAt

func (r Ranks) InsertAt(elem rank, pos int) Ranks

func (Ranks) Len

func (r Ranks) Len() int

Sort interface definition to sort our Ranks struct

func (Ranks) Less

func (r Ranks) Less(i, j int) bool

func (Ranks) Pretty

func (r Ranks) Pretty(nb int)

func (Ranks) Swap

func (r Ranks) Swap(i, j int)

func (Ranks) Write

func (r Ranks) Write(d, o string) error

Jump to

Keyboard shortcuts

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