# Determine maximum curvature from line plot

Hi everyone,
Does anyone know how to determine the maximum curvature from the line plot?

1 Like

Could you please provide us with a bit more of information ? The best would be to upload a workflow with your data, its corresponding line plot and explanations of what you mean by maximum curvature in your case.

Thanks and looking forward

Best
Ael

Hi aworker, thank you for your answer. I am using DBSCAN node where I need to set up the epsilon value, and the way how I was trying to determine the epsilon value is from the line graph (the maximum curvature) - which would better explain why I chose a particular value. Is there other way how to do it?

1 Like

Thanks for the clarifications. I think I understand now. Can you upload here a snapshot of the â€śline graphâ€ť you get please ? It will help to decide which is the best method to try to fix your epsilon. The number of samples you are trying to clusterize using DBSCAN should help too.

Thanks,
Ael

Thank you for your quick response. Number of points is 6

1 Like

Thank you for the image and the number of samples in your dataset. DBSCAN is a density-based clustering algorithm as explained in this node help. 6 samples is too little number of samples to calculate a density using DBSCAN. How many columns (variables) are you considering to calculate your clustering ? What is the type of your columns ?

I this case, I would just recommend using a -Hierarchical Clustering- node or even a PCA depending on the type of your columns.

Hope it helps.

Best,
Ael

1 Like

Good morning. I could have explained my dataset better. I have three columns (variable a, b, c) which I normalized using Z-score, and then I searched for the nearest neighbours, averaged them and plotted them into a line plot with increasing order. I have roughly 300 data points. Now, I want to cluster similar entriesâ€¦ It is the first time when I am doing something like that.

1 Like

Good morning @Amanda252

Thank you for your explanations. It is clearer for me now.

The maximum curvature of a line can be obtained using the -Lag Column- node with Lag=1 and Lag Interval=1 of the distance value:

The curvature of the line at each point of the curve is the difference between the line values and its lagged values. The maximum line curvature position is the one with maximum difference.

Hope this explanation helps. Otherwise, please post here the points of your line plot in excel format and I will provide a workflow that calculates the Maximum Curvature.

Best,
Ael

3 Likes

Thank you so much. It works perfectly

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.