weiVec[nodeIndInput] = ((long)(rand() % RAND_MAX) / (RAND_MAX - 1) -0.5) *0.5; 这段怎么进行IQ转换,求大神教我
weiVec[nodeIndInput] = _IQmpy((long)_IQdiv(_IQ(rand() % RAND_MAX),_IQ(RAND_MAX) - _IQ(1)) - _IQ(0.5) , _IQ(0.5));这是我试着搞了一下,但是结果有负数,好像不对
weiVec[nodeIndInput] = _IQmpy((long)_IQdiv(_IQ(rand() % RAND_MAX),_IQ(RAND_MAX) - _IQ(1)) - _IQ(0.5) , _IQ(0.5));这是我试着搞了一下,但是结果有负数,好像不对