model

package
v0.0.0-...-c564278 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndependentCascade

type IndependentCascade struct {
	// contains filtered or unexported fields
}

func NewIndependentCascade

func NewIndependentCascade(graph *util.Graph, config *util.Config, t int) *IndependentCascade

func (*IndependentCascade) Diffuse

func (ic *IndependentCascade) Diffuse(seeds set.Set) set.Set

func (*IndependentCascade) Sample

func (ic *IndependentCascade) Sample(activated, seeds set.Set) float64

func (*IndependentCascade) Trial

func (ic *IndependentCascade) Trial(activated, seeds set.Set, inv bool) float64

func (*IndependentCascade) Trials

func (ic *IndependentCascade) Trials() []util.TrialType

func (*IndependentCascade) Type

func (b *IndependentCascade) Type() int

type LinearThreshold

type LinearThreshold struct {
	// contains filtered or unexported fields
}

func NewLinearThreshold

func NewLinearThreshold(graph *util.Graph, config *util.Config, t int) *LinearThreshold

func (*LinearThreshold) Diffuse

func (lt *LinearThreshold) Diffuse(seeds set.Set) set.Set

func (*LinearThreshold) Type

func (b *LinearThreshold) Type() int

type Model

type Model interface {
	Diffuse(seeds set.Set) set.Set
	Type() int
}

Jump to

Keyboard shortcuts

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