hrm

package module
v0.0.0-...-9847aea Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToNeighborLists

func AddToNeighborLists(rod *Rod, grid []*GridSpace)

func CalcDensity

func CalcDensity(config *Config) float64

func CalcS

func CalcS(rods []*Rod, config *Config) float64

func Check

func Check(e error)

func CheckNeighborOverlaps

func CheckNeighborOverlaps(rod *Rod, grid []*GridSpace, rods []*Rod, config *Config) bool

func CheckOverlap

func CheckOverlap(rod1 *Rod, rod2 *Rod, config *Config) bool

func Delete

func Delete(rod *Rod, grid []*GridSpace, config *Config, rods []*Rod)

func GetAxes

func GetAxes(rod *Rod)

func GetGridID

func GetGridID(box_length float64, n_bins int, grid_bins *[]float64, rod *Rod)

func GetGridNeighbors

func GetGridNeighbors(x int, y int, n_bins int, grid_space *GridSpace)

func GetRandLoc

func GetRandLoc(n_dim int, box_length float64, rod *Rod)

func GetRandOrientation

func GetRandOrientation(restricted bool, rod *Rod)

func GetVertices

func GetVertices(n_dim int, n_vertices int, rod *Rod)

func GridInit

func GridInit(x int, y int, n_bins int, grid_space *GridSpace)

func Insert

func Insert(grid []*GridSpace, config *Config, rods *[]*Rod)

func MinMax

func MinMax(array []float64) (float64, float64)

func MonteCarlo

func MonteCarlo(rods *[]*Rod, grid []*GridSpace, config *Config)

func RemFromNeighborLists

func RemFromNeighborLists(rod *Rod, grid []*GridSpace)

func RodInit

func RodInit(config *Config, rod *Rod)

func RodRefresh

func RodRefresh(config *Config, rod *Rod)

func Rotate

func Rotate(rod *Rod, grid []*GridSpace, config *Config, rods []*Rod)

func RotateVector

func RotateVector(v [2]float64, rot float64) (v_out []float64)

func SelectWeightedConfig

func SelectWeightedConfig(config_list []float64, weights []float64, weights_sum float64, k int) float64

func Translate

func Translate(rod *Rod, grid []*GridSpace, config *Config, rods []*Rod)

func WriteTraj

func WriteTraj(rods []*Rod, fo string)

Types

type Config

type Config struct {
	V float64

	CV_out string
	// contains filtered or unexported fields
}

func ReadConfig

func ReadConfig(fn string) (config Config, err error)

type GridSpace

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

type Rod

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

func GetRandRod

func GetRandRod(rods []*Rod) (rod *Rod)

func RodDeepCopy

func RodDeepCopy(rod *Rod) *Rod

Jump to

Keyboard shortcuts

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