I am using Insertion and Merge sort and trying to indicate the intersection point on the graph below. I found a possible solution on rosettacode, but a bit confusing for a newbie like me... Where should I look, do you guys know how to indicate it in Julia?
How to indicate intersection points on graph?
295 Views Asked by wrisurcuriosity At
1
There are 1 best solutions below
Related Questions in PLOT
- Interactive plotting with R raster: values on mouseover
- Octave Real time plotting
- draw the y-label on the top of y axis
- How to use plotyy for 2 different plots inside a subplot?
- MatLab 3-vector plot/mesh with colour-scale
- Display value of Y axis inside GUI plot
- term frequency over time: how to plot +200 graphs in one plot with Python/pandas/matplotlib?
- R: ggplot2: Unable to plot points from a data.frame
- Combine base and ggplot graphics in R figure window in different pages
- Categorical scatter plot in Matlab
- Python3 embedding Matplotlib Plot inside GTK3 using Glade
- Plot: Add legend that overlay several Frames
- R: melting a data.frame to use in ggplot2 for multiple y-value plot
- Matlab: discontinuous plot
- How to plot colors on CIE 1931 Color Space in Matlab?
Related Questions in JULIA
- Julia parallel programming - Making existing function available to all workers
- Can I use a subtype of a function parameter in the function definition?
- Matching of array elements in Julia
- Julia: Enforce constraints on objects in a container?
- Why 2 ^ 3 ^ 4 = 0 in Julia?
- Packing int and float to byte arrays in Julia
- Julia: How do I create a macro that returns its argument?
- Can I use Julia to program my GPU & CPU?
- Julia: Calling GSL functions
- Append error in python
- Memory allocation in a fixed point algorithm
- Using Julia, what's the accepted way to deal with data stored in external databases?
- Can I make a Julia package containing multiple modules that can be independently imported?
- Is there a way to plot graph in julia while executing loops?
- How do I create a recursive typealias in julia?
Related Questions in STATSPLOTS.JL
- How to keep all the subplots have the same Y axis range in julia?
- Percentage axis in bar plot Julia
- Half violin plot in Julia
- Julia using StatsPlots.jl for grouped bar plot. How to get a legend on the bar plot?
- How to indicate intersection points on graph?
- Swap Axes of Violin plot
- A function for boxplot a column of dataframe in Julia
- How to have a customized legend in the x axis when using groupedbar by StatsPlots
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?


Your data has some noise, which means there might be more than one intersection point (all close). Assuming no noise, just two monotonically increasing functions, this should work:
Note that this method gives you 1/4 possible points closest to the intersection. The intersection itself is not defined for functions only defined from discrete points. By changing the order of
y1andy2in the code above you can get all 4 points. For fine enough discretization using one of those 4 points might be good enough for your needs.A better approximation would be to use those 4 points to fit 2 lines, for
y1andy2, and find the intersection of those two lines analytically (e.g. with the equationsy1=m1*x+b1, ...). But I leave this to you ;)