Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ease ¶
@no-mutate / @:sampler / @:interpolation / @:functional Maps linear interpolation to a exponential function where x is in the [0,1] in [0,1 domain]. w is an exponential scale parameter for e^(-wq)
func SampleAverage1D ¶
func SampleAverage1D(domain []float32, values []float32, n int, start_domain float32, end_domain float32, bindIndex *int) (float32, error)
Returns an average value under a sampling domain given value slices and their domain areas we assume the data provided is sorted. Out r domains sample endpoint in the domain. We can pass in the sample rs as slices
Types ¶
type SampleData_1D ¶
type SampleData_1D struct { Domain []float32 `json:"domain,omitempty"` Values []float32 `json:"values,omitempty"` Count int `json:"samples,count"` }
func (*SampleData_1D) MarshalJSON ¶
func (strct *SampleData_1D) MarshalJSON() ([]byte, error)
func (*SampleData_1D) UnmarshalJSON ¶
func (strct *SampleData_1D) UnmarshalJSON(b []byte) error
type Sampler ¶
type Sampler interface { UpdateSampler() Run(status chan int) Hash([3]float32) int GetSamples(i int) []int GetRegionalSamples(hash int, width int) []int GetData() [][]int GetElements() int GetVectors() []float32 GetHashSize() int GetBuckets() int BucketSize() int GetData1D() []int GetSamplesFromPosition(pos []float32) []int }
Sampler represents abstracted sampler class for domains
type SamplerJSON ¶
type SamplerJSON struct { Meta SamplerMeta Samples_1D SampleData_1D }
func ImportSampler ¶
func ImportSampler(resource string) (*SamplerJSON, error)
For now just looks in resource folder
func (*SamplerJSON) ExportJSON ¶
func (strct *SamplerJSON) ExportJSON(filename string)
func (*SamplerJSON) MarshalJSON ¶
func (strct *SamplerJSON) MarshalJSON() ([]byte, error)
func (*SamplerJSON) UnmarshalJSON ¶
func (strct *SamplerJSON) UnmarshalJSON(b []byte) error
type SamplerMeta ¶
type SamplerMeta struct { Name string `json:"name,omitempty"` SamplerID int `json:"samplerID,omitempty"` }
Sampler Name
func (*SamplerMeta) MarshalJSON ¶
func (strct *SamplerMeta) MarshalJSON() ([]byte, error)
func (*SamplerMeta) UnmarshalJSON ¶
func (strct *SamplerMeta) UnmarshalJSON(b []byte) error
Directories ¶
Path | Synopsis |
---|---|
Voxel Array Based Storage Structure O1 Lookup / Edit Times Using Voxel Index Bucket Technique Voxel Array Runs an Update Thread To Continuously Edit Particle Position Indexes
|
Voxel Array Based Storage Structure O1 Lookup / Edit Times Using Voxel Index Bucket Technique Voxel Array Runs an Update Thread To Continuously Edit Particle Position Indexes |
Click to show internal directories.
Click to hide internal directories.