Suppose I have the following dataset:
import numpy as np
a = np.array([ 0.00854492, 0.00622559, 0.01733398, 0.04077148, 0.03027344,
0.04418945, 0.07006836, 0.04626465, -0.00158691, 0.04345703,
0.06213379, 0.0300293 , 0.05517578, 0.02636719, 0.05688477])
a.mean()
0.035742187999999994
a.std()
0.020752584616225259
How can I transform the dataset so that it has a mean of 0.04 and std of 0.015?