Get Y axis value from X axis current value
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -13,6 +13,7 @@ using NBitcoin;
using NBitcoin.Payment;
using ReactiveUI;
using WalletWasabi.Blockchain.Analysis.Clustering;
+using WalletWasabi.Fluent.MathNet;
using WalletWasabi.Fluent.ViewModels.NavBar;
using WalletWasabi.Gui.Converters;
using WalletWasabi.Userfacing;
@@ -267,6 +268,15 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
}
}
+ private double GetYAxisValueFromXAxisCurrentValue()
+ {
+ var x = _xAxisValues.Reverse().ToArray();
+ var y = _yAxisValues;
+ double t = XAxisCurrentValue;
+ var spline = CubicSpline.InterpolateNaturalSorted(x, y);
+ return spline.Interpolate(t);
+ }
+
public ICommand PasteCommand { get; }
public double XAxisCurrentValue { get; set; } = 36;

Get Y axis value from X axis current value