How to find overlap area between two ksdensity plots?
Show older comments
Hi all,
I have generated some ksdensity plots of some vectors. I want to find the amount of overlap between the ksdensity plots of the same features belonging to different classes. My code for plot generation looks like this:
plot_ksdensity(vector1);%vector1 is a feature of class A
hold on;
plot_ksdensity(vector2,'r');%vector2 is the same feature of class B
hold off;
The plot_ksdensity function just plots the ksdensity retaining the original point values of the vectors This code generates two pdfs that overlap. I want to find the area of the overlap. Can someone help me with this?
Answers (0)
Categories
Find more on Exploration and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!