INNER CODE UNIT · Python

diff

firmai/deltapy · deltapy/extract.py:84

    diff = (_roll(x, 1) - 2 * np.array(x) + _roll(x, -1)) / 2.0
    return np.mean(diff[1:-1])

# mean_second_derivative_central(df["Close"])

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


#-> In Package
def variance_larger_than_standard_deviation(x):

    y = np.var(x)
    return y > np.sqrt(y)

# variance_larger_than_standard_deviation(df["Close"])

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…