特定のピボット ポイントのフィボナッチ比について、それぞれ少なくとも 61% の対称性と振幅比を見つけようとしています。
y[6]
データの中間であり、シリーズの最高点であるとしましょう。高さ (y) と長さ (x) の値が対称かどうかを計算する方法がわかりません。どんな助けでも大歓迎です。
基本的には、左側に対してシリーズの最高点で分割された右側と比較した対称性の割合です
import matplotlib.pyplot as plt
from scipy import interpolate
import numpy as np
y= [10.5,10,12,13,10,11,16,10,9,13,10]
x= np.linspace(1, len(y), len(y), endpoint=True)
fig, ax = plt.subplots(figsize=(8, 6))
ax.plot(x, y, color='red', label= 'Find Symmetry')