Octave: how to get rid of the function break on the graph [closed] - graphics

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
Few days ago we (a student group) were acquainted with Octave, and one of the first tasks were to build some functions graphs. I'm stuck on the task of plotting the cos(x) and tan(x) graphs on a same figure on a segment from -2 pi to 2 pi, as the tan(x) function breaks at points of pi/2, which is clearly visible on the graph. According to the task this must not happen.
So, the question is how to correctly plot the tan(x) function graph without using incomprehensible to an Octave beginner ways?
Our code should look something like this: code example
I thought maybe removing half values of pi from the x range would cause the tan(x) to behave properly, but I don’t know how to. Anyway, there might be another option, which I’m too unaware of. So I am hope for your help.

Related

What is the best way to isolate these local areas by intensity? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
The general task is to binarize the image so that only the brightest spots remain. But adaptive binarization and the Otsu method do not give an acceptable result due to light traces (shown in the image).
I think that you need to go through the entire image with a small window that will highlight a local minimum in the area.I am counting on the fact that with the correct selection of the threshold, only light spots will remain that need to be found. It should be. But I do not know how to apply the standard opencv threshold function in sliding windows.
UPD:After the proposed adaptive threshold, the image looks like this. Not perfect, but much closer to what I need.It seems that a combination of threshold functions does not always give a better result than a single one.
This is the command:
outputimg = cv.adaptiveThreshold(img,255,cv.ADAPTIVE_THRESH_MEAN_C,cv.THRESH_BINARY,11,0)
further explanation and examples: https://docs.opencv.org/3.4/d7/d4d/tutorial_py_thresholding.html

D3 line or area chart with series that cross over each other [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to make a chart to visualize our product backlog over time. My idea is to show a line (a "series") for each work item, with each line having a width according to its estimate, and each line stacked on all the other work items that are ahead of it (as of each day). So on any given day, a line be at a Y-axis height representing how much work is ahead of it on the backlog.
The problem is that the ordering changes day by day, so I'd need to have the series cross over each other, and I haven't been able to find a charting tool that will let me do it.
(I'm trying to demonstrate the high-level "flow" of work items - the ones near the top of the queue will keep getting done, but the ones near the back of the queue will just sit there for a long time. New ones will be introduced periodically, and old ones will be canceled. I imagine the rendered chart will look like streaks of wind, if you will.)
Is there a way to do it in D3, maybe?
Pretty much any chart visualization that you can think of can be done with d3, it's just a matter of execution.
I'm not positive exactly what you're describing, but is it something like this baby name chart?
You can look through the gallery to see a lot of different examples of what is possible with d3.

How to draw a kernel density plot using Haskell [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a set of timestamps (each corresponding to a student submission), and I wanted to take a look at them graphically. I know criterion uses a KDE and makes a nice plot, and it looks like it depends on the statistics package, which provides a kde function, but I couldn't trace through the code of criterion to see how it's being used.
Ideally, and answer would at least be a snippet of code that produces a picture. An explanation of what criterion does in this case would also be welcome.

Graphic to check for complete separation [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to check for complete separation. I am using SPSS and need to know what steps I have to take to get the grahpic on this site. Can someone help me?
SPSS does not provide that probability curve (SAS and Stata can do that). However, plotting the 1/0 outcome against the continuous predictor, and observe how the two horizontal data lines overlap may be enough to give you some hint.
If you have enough data, you can also first separate your data by different groups (for example, 10 equal groups split by your continuous predictors), and the compute each group's mean (aka probability of "yes" to outcome), and join the points. That line should approximate the curve in the illustration you provide.

Effects of sound multiplication [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
What are the effects of multiplication of two different sound? An neither of them are constant, like two different songs, or one track of instrumental and one of vocals.
A simple Google search came up with this:
http://crca.ucsd.edu/~msp/techniques/v0.11/book-html/node77.html
Did you search for it at all?
But basically what happens is you end up creating an envelope where the second acts as a "coefficient" of sorts.
You also end up with a reduction of sound levels (since a decimal times a decimal is less both of them), so you'll need to amplify the signal a bit to retain volume.
The page I linked gives a lot more explanation and has a lot of the algebra needed to write up a code to implement it. Look there if you have any more questions.

Resources