Documentation
¶
Overview ¶
Copyright ©2015 The Gonum Authors. All rights reserved. Use of this code is governed by a BSD-style license that can be found in the LICENSE file
Index ¶
- func LogSeed(round, activated int, roundtime, timetotal float64, seeds set.Set, ...)
- func SeedToLog(round, activated int, roundtime float64, seeds set.Set) (s string)
- type Algorithm
- type Config
- type DiffusionModel
- type Edge
- type Graph
- type Item
- type Node
- type PriorityQueue
- type Queue
- type Stack
- type TrialType
- type Weighted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { OutputDir string `toml:"outputDir"` GraphPath string `toml:"graphPath"` Trials int `toml:"trials"` Algorithm string `toml:"algorithm"` Seeds int `toml:"seeds"` Model string `toml:"model"` Simulations int `toml:"simulations"` Seed int64 `toml:"seed"` }
This is the base Config type for the API. Extend as needed.
func LoadConfig ¶
func (*Config) LogFileName ¶
type DiffusionModel ¶
type DiffusionModel int
const ( IC DiffusionModel = iota LT )
func ToDiffusionModel ¶
func ToDiffusionModel(a string) DiffusionModel
func (DiffusionModel) String ¶
func (a DiffusionModel) String() string
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
func NewPriorityQueue ¶
func NewPriorityQueue(cmpFunc func(interface{}, interface{}) bool) *PriorityQueue
func (*PriorityQueue) Len ¶
func (pq *PriorityQueue) Len() int
func (*PriorityQueue) Peek ¶
func (pq *PriorityQueue) Peek() interface{}
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{}) *Item
func (*PriorityQueue) Update ¶
func (pq *PriorityQueue) Update(item *Item, value interface{})
type Weighted ¶
type Weighted struct {
// contains filtered or unexported fields
}
func NewWeighted ¶
Click to show internal directories.
Click to hide internal directories.