osl-pocs / fqlearn

A library to help teaching mass transfer and thermodynamics.
https://osl-pocs.github.io/fqlearn/
Other
2 stars 0 forks source link

Add interpolation in ThreeComponent class #39

Closed EverVino closed 3 months ago

EverVino commented 3 months ago

Use the following data

image

and consider the following image which could represent the plotted data

Screenshot from 2024-03-15 23-36-24

We want to get the intermediate points between the dots (these dots comes from the data) like the green ones in the next plot

Screenshot from 2024-03-15 23-37-07

In the plot we see 1 dot between a pair of dots (data) but we want to interpolate n values between every pair of dots so it could be 1, 2 3 or more points interpolated.

Task from the initial data create a new set of points which adds the all interpolated data into a new set

def interpolate(self.eq_data, n):
    # interpolate n dots between a pair of dots (data)
    # return or save in a self.interpolated_data
    # a new data with the interpolated ones
    ...
EverVino commented 3 months ago

Done in #40