How do you convert array of byte to array of float64

Issue

This Content is from Stack Overflow. Question asked by pefr

I am searching to convert an array of byte ([]byte) to array of float64 ([]float64) but I didn’t have any clues to do it.

I read data from rtlsdr package (https://pkg.go.dev/github.com/jpoirier/gortlsdr) and would pass it to Pwelch algorithm (https://pkg.go.dev/github.com/mjibson/go-dsp/spectral)

Is it possible to convert large array of byte to float64 ?

(+ another question: did you think that possible to convert Pwelch function to work with uint8 ?)

Thank you so much,
pefr



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?