landscape

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package landscape implements persistence landscape calculation for a set of intervals.

The detail of this representation are described in 'Statistical Topology Using Persistence Landscapes.' P. Bubenik http://arxiv.org/pdf/1207.6437v1.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Describe

func Describe(data Interface, fn func(t int, λₜ []int))

Describe calculates the persistence landscape functions λₖ for the interval data in the provided Interface. fn is called for each position t of the span of the interval data with the values for t and the k λ functions at t. Explicit zero values for a λₖ(t) are included only at the end points of intervals in the span.

func DescribeTree

func DescribeTree(it *interval.IntTree, fn func(t int, λₜ []int))

DescribeTree calculates the persistence landscape functions λₖ for the interval data in the provided interval tree. fn is called for each position t of the span of the interval data with the values for t and the k λ functions at t. Explicit zero values for a λₖ(t) are included only at the end points of intervals in the span. Note that intervals stored in the tree must have unique id values within the tree.

Types

type Interface

type Interface interface {
	sort.Interface
	Item(int) interval.IntRange
}

The landscape Interface allows arbitrary collections to be described as a persistence landscape.

Jump to

Keyboard shortcuts

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