How to approximate the signal given by the blue line to get the red line as a result?. The red line is an example of the waveform I would like to obtain...
Data:
array([0.60051482, 0.52774704, 0.51047335, 0.3840505 , 0.23132447,
0.02007863, 0. , 0. , 0. , 0. ,
0. , 0. , 0.26607758, 0.49173196, 0.57001177,
0.57001177, 0.57001177, 0.58471134, 0.58471134, 0.1894411 ,
0.51157726, 0.66299115, 0.66262485, 0.70782748, 0.70782748,
0.61999383, 0.52664564, 0.0903601 , 0.17554687, 0.69092259,
0.68908609, 0.6905563 , 0.69018749, 0.69018749, 0.6905563 ,
0.69018749, 0.69092259, 0.6912914 , 0.68982119, 0.49834539,
0.67732442, 0.67842833, 0.67658932, 0.67842833, 0.57478869,
0.57478869, 0.53142256, 0.51157726, 0.26350597, 0.16170534])