Questions tagged [discrete]
83 questions
0
votes
0 answers
I can´t add the data label to my plot, occurs this Error: Discrete value supplied to continuous scale
Hi I have this code which is working ok, but when I try show the data label I have an error that I don't know how to solve.
Error: Discrete value supplied to continuous scale
This code is ok.
ggplot(Datos_3.1, aes(x=reorder(Empresa, Monto),…
0
votes
1 answer
Smoothen matplotlib plot with a discrete string x-axis?
I am trying to plot a smooth line graph in matplotlib with a discrete x-axis that are strings (please see output figure below). I am currently getting jagged lines. All the examples, I have seen on Stack Overflow deal with a continuous x-axis…

Shashank
- 55
- 7
0
votes
0 answers
Cannot resolve Error: Discrete value supplied to continuous scale
I've looked at some of the popular threads on this error but none seem to help me with mine.
I'm working with data, trying to create a line graph with dates on the x and lines representing three variables, Attendance (int), Registrants (int), and…

Stefani
- 19
- 1
0
votes
1 answer
Simulate the assembly of parts in Arena Simulation Software
I am simulating an assembly process in Arena. To keep things simple, suppose a model that assigns bags to passengers.
Each entity has a different ID (Entity.SerialNumber): I would like to check which bag has been assigned to which passenger.
How…
0
votes
1 answer
How can I further analyze high frequency data from discrete wavelet transform?
I applied a discrete wavelet transform to horizontal wind speed data to receive the below plot. I'm basically trying to use the information from the detail coefficient (the turbulent flow) for further analysis, but I'm not sure the best direction to…

tornadogal
- 13
- 3
0
votes
1 answer
Correlation with discrete and categoric variables in R
I am analyzing this dataset it has numeric and factor variable. I would like to know the correlation so I can choose the best variables.
str(data)
$ Ag : num [1:1470] 41 49 37 33 27 32 59 30 38 36 ...
$ Ay : Factor…

Raq
- 75
- 1
- 6
0
votes
1 answer
How to normalize samples of an ongoing cumulative sum?
For simplicity let's assume we have a function sin(x) and calculated 1000 samples between -1 and 1 with it. We can plot those samples. Now in the next step we want to plot the integral of sin(x) which would be - cos(x) + C. Now i can calculate the…

Dennis
- 11
- 3
0
votes
1 answer
Anylogic, seize resource from pool based on certain conditions
Question has been asked and answered before, see Anylogic - dynamic specification of resources to seize. But the multiple trolls on stackoverflow requested me to ask same question again, regardless.. - as asking it there is seen as an "answer" and…

Cecil
- 55
- 6
0
votes
1 answer
How can i prove this discrete math challenge?
A test with 20 questions was applied to 300 people. We know that 8 questions had at least
100 hits and the rest at least 200 hits. Prove that some student got at least 11 questions right.

Duviduvish
- 9
- 1
0
votes
1 answer
Create R ggplot2 discrete colour palette for gradient map with continuous values
Hy everyone!
I really need some help to create a discrete legend over a continuous map.
Here what I have so far: Here you see probability of occurrence of a plant species accordingly to 4 statistical algos. In the legend you see "0,1,2,3,4", but…

masemuta
- 1
- 1
0
votes
0 answers
mixed logit (mlogit) with socio-demographic variables
I conducted discrete choice experiment but have been analyzed for 2 months. Anybody helps me with this mixed logit problem...
My experiment was conducted with 3 alternatives (option 1, option 2, option 3) and 3 attributes (soc, man, inc)
I also have…

Jinyoung Kim
- 1
- 1
0
votes
0 answers
Farmer require to change value after discrete time/ ticks in NetLogo
I am writing a model where farmers update profits seasonally and cultivate crops accordingly. In total there will 630 ticks in a year's time period.There are two seasons. First season will take 252 ticks to complete a crop cycle. And other season…

Sadaf
- 163
- 7
0
votes
1 answer
Solving nonlinear bin packing optimization problem in python
Is there a straight forward way (e.g. some module with a commonly used solver) to solve a problem derived from the well known bin packing problem (e.g. see https://en.wikipedia.org/wiki/Bin_packing_problem) in python?
In detail, the bin packing…

Holger
- 43
- 3
0
votes
0 answers
What is the distribution of n correlated Bernoulli variables?
For independent Bernoulli X_1, X_2, ..., X_n, the maximum distribution is
Y=max{X_1,X_2,⋯,X_n }~Bernoulli(1-∏_(i=1)^n▒(1-p_i ) )
But for correlated Bernoulli, what is the maximum distribution? any advice? Many thanks.

user1813615
- 1
- 2
0
votes
0 answers
Penalised multinomial discrete time competing risk model for variable selection and predictions
I have a problem trying to fit a penalised multinomial model that helps in variable selection.
The data consist of per semester record of students performances from registration to either dropout or completion. So I have multiple record per student…

lionel
- 1
- 1