Questions tagged [discrete]
83 questions
0
votes
0 answers
how can I overcome noncontinuous drawing line in javaFX?
i have developed pen function using javafx circle shape.The problem is that when I draw quickly, the drawn line or any shape becomes discrete line.
concerned code part of the function:
Pane freePane = new Pane();
freePane.setOnMouseDragged(e1->{
…

Android World
- 1
- 4
0
votes
1 answer
scale_x_continuous : Discrete value supplied to continuous scale
I'm a beginner in R. I get this error
Error: Discrete value supplied to continuous scale
when I try to use
scale_x_continuous(breaks=1:10)
The plot I get is the following one. As you can see, the axis needs to be reduced...
I get my data from a…

Gemma Prieto Aguilar
- 41
- 1
- 3
0
votes
0 answers
Clustering a very large dataset of discrete-valued samples
I am trying to cluster (AgglomerativeCluster, kMeans) a very large dataset of the following type:
[0, 0 , 0, 0, 1, 2, 2, 2, 2, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5]
That is, a sample of integers that repeat multiple times.
In short, I would like to…

Nicolas Gutierrez
- 131
- 1
- 5
-1
votes
1 answer
Can standardisation and outlier treatment be done on discrete numerical feature?
I have a column in my dataset which has the number of payments made to the physicians. This is a discrete nunerical feature. I know that transformations and scaling can be done for continuous data. But what about discrete numerical features?
When I…
-1
votes
1 answer
How to create events lasting for a specified duration of time in AnyLogic
I’m currently building a discrete event model where I’m trying to simulate port operations. In my model, I am looking to conduct “disruptions” using Event block. However, I couldn’t seem to find a way to specifically say how long the duration of the…

Unknown
- 1
-1
votes
2 answers
TypeError: choropleth() got an unexpected keyword argument 'color_discrete_map'
I am trying to plot a map using choropleth, but it gives me an error that said "color_dicrete_map" is an unexpected keyword.
Can anyone help me with it?
def plot_vaccin(color, vaccin):
fig = px.choropleth(country_latest, locations="iso_code",
…
-2
votes
2 answers
How to create new bucketed column from an existing continuous column in SQL?
I have the following my_table in SQL with one numeric column:
Age
---
31
53
52
37
57
19
20
63
59
I want to have a new column in the table with range buckets along the following:
"Young": 0-30
"MidAge": 31-50
"Old": 51-
So the expected result:
Age…

Fredrik
- 411
- 1
- 3
- 14
-2
votes
1 answer
Strange x-axis in histogram for discrete variable in R
I have some discrete data that I'm trying to plot in a histogram in R. I'm using the built in hist() function, which works fine most of the times for the data I have. However, when it comes to a discrete variable it looks somewhat strange…

castarha
- 1
- 2