这是我目前拥有的图表:
虚线蓝线表示我正在寻找的x值所对应的y值。我正试图找到这条线与蓝色曲线(上部)的交点的x值。由于交点不在已定义的点上,我们需要插值出一个落在上部图中的点。
以下是我手头拥有的信息: LineValue - 交点的y值和虚线的值(y = LineValue) Frequency - 包含此图中可见的x值坐标的数组。对应于LineValue的插值Frequency值是我们要找的 Upper/Lower - 包含此图的y值信息的数组
![The Dotted Blue line represented the y value that corresponds to the x value I am looking for. I am trying to find the x values of the line's intersections with the blue curve(Upper)](https://istack.dev59.com/eCUJs.webp)
以下是我手头拥有的信息: LineValue - 交点的y值和虚线的值(y = LineValue) Frequency - 包含此图中可见的x值坐标的数组。对应于LineValue的插值Frequency值是我们要找的 Upper/Lower - 包含此图的y值信息的数组