📅  最后修改于: 2022-03-11 14:59:13.903000             🧑  作者: Mango
import math
import numpy as np
alpha = 0.2
beta=1-alpha
C = (-math.log(1-beta))/alpha
coff = [0.0,0.01,0.0,0.35,0.98,0.001,0.0]
# Not working
coff = coff*C
# Working -> convert the list to numpy array:
coff = np.asarray(coff) * C