This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我在DSP中采样交流量,是瞬时值,我想求有效值,怎么算?
一直周期内,找到最大值,除以个根号2,不就是有效值么。
如果输入是标准的正弦信号,那么楼上的方法可以使用。
如果是任意交流信号,根据你精度要求,可以设定采样点数,对所有采样结果求平方和开根号。这也是有效值的定义。
这种方式能够现实吗,在程序中如何实现?
为什么不可以?写求平方和的代码应该是非常基本的吧?