Documentation ¶
Index ¶
- func BuildDiffractionProtobuf(dataset *protos.Experiment, diffractionData map[string][]DiffractionPeak) *protos.Diffraction
- func DecodeZeroRun(encodedSpectrum []int32) []int32
- func ParseDiffractionProtoBuf(path string) (*protos.Diffraction, error)
- func SaveDiffractionProtobuf(diffractionPB *protos.Diffraction, fname string) error
- func ScanDataset(dataset *protos.Experiment) (map[string][]DiffractionPeak, error)
- type DiffractionPeak
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDiffractionProtobuf ¶
func BuildDiffractionProtobuf(dataset *protos.Experiment, diffractionData map[string][]DiffractionPeak) *protos.Diffraction
func DecodeZeroRun ¶
func ParseDiffractionProtoBuf ¶
func ParseDiffractionProtoBuf(path string) (*protos.Diffraction, error)
func SaveDiffractionProtobuf ¶
func SaveDiffractionProtobuf(diffractionPB *protos.Diffraction, fname string) error
func ScanDataset ¶
func ScanDataset(dataset *protos.Experiment) (map[string][]DiffractionPeak, error)
Types ¶
type DiffractionPeak ¶
type DiffractionPeak struct { PeakChannel int EffectSize float64 BaselineVariation float64 GlobalDifference float64 DifferenceSigma float64 PeakHeight float64 }
func ScanSpectra ¶
func ScanSpectra(a []int32, b []int32) ([]DiffractionPeak, error)
Click to show internal directories.
Click to hide internal directories.