Questions tagged [discretization]

Discretization concerns the process of transferring continuous models and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numerical evaluation and implementation on digital computers.

Discretization is used everywhere in DSP (digital signal processing) to represent analog data, e.g. sound, in binary format to allow computer processing and editing.

131 questions
0
votes
0 answers

Bin edges must be unique: array([ 1., 30., 40., 40., 40., 40., 45., 50., 99.]). You can drop duplicate edges by setting the 'duplicates' kwarg

while trying to apply the code below I get error massage: Bin edges must be unique: array([ 1., 30., 40., 40., 40., 40., 45., 50., 99.]). You can drop duplicate edges by setting the 'duplicates' kwarg anyone has any idea what could cause to this…
0
votes
1 answer

How to dynamically discretize a pandas column based on the summation of another column?

I have a process I repeat...often, but do not know how to create a dynamic function to make this easier. I need to take a variable (age for example) and bin the age into discrete bins equaling at least 1000 units of another column (weight). I need…
Jordan
  • 1,415
  • 3
  • 18
  • 44
0
votes
2 answers

Discretizing a continous variable keeping out zeros

I want to discretize a column which contains of a continous variable. the data looks like ; c(0,25,77,423,6,8,3,65,32,22,10,0,8,0,15,0,10,1,2,4,5,5,6) I want turn the numbers into categorical by discretizing, but zeros represent a different…
Samet Sökel
  • 2,515
  • 6
  • 21
0
votes
1 answer

Discretization : converting continuous values into a certain number of categories

1 Create a column Usage_Per_Year from Miles_Driven_Per_Year by discretizing the values into three equally sized categories. The names of the categories should be Low, Medium, and High. 2 Group by Usage_Per_Year and print the group sizes as well…
0
votes
0 answers

Bifurcation diagram by C++ of the non-local elastica

I have tried to do a simulation using C++ of the equation of non-local elastica defined by the following system Using the following discretization with the boundary condition and by sitting lc=1/(6*sqrt(3)), but I did not arrive to the …
0
votes
1 answer

Discretizing Continuous Data into Columns for Confusion Matrix

The goal is to create a confusion matrix for a chosen model column and compare it with the true column, by discretizing the values into regions. I have a large dataset where I have constructed a large number of models and created predictions…
Paddy
  • 91
  • 7
0
votes
1 answer

Discretizing over the area of an ellipse given bounds

The problem is I have a center (x,y) and some standard deviations sigma_{x1} and sigma_{x2}, together I can use these to plot a Gaussian 3-sigma confidence interval of the center (x,y) I need to discretize over this ellipsoid such that I can…
Morten Nissov
  • 392
  • 3
  • 13
0
votes
1 answer

Easy way to map values using intervals stored as strings in R?

I have a dataframe of intervals stored as strings : interval 1 '(-inf-57142.8]' 2 '(57142.8-94002.6]' 3 '(94002.6-130862.4]' 4 '(130862.4-167722.2]' 5 '(167722.2-204582]' 6 '(204582-241441.8]' 7 …
user7483013
0
votes
0 answers

How to discretize a variable with only 2 distinct values?

I am trying to discretize the variable- DEATH, into two bins. DEATH can only be a value of 0 or 1 The command I am using is as follows: to convert Death to a factor variable using unsupervised discretization with equal frequency binning…
Sandra
  • 3
  • 2
0
votes
1 answer

Discretization in Drake

So I am doing a zero order hold integration technique for discretization. From the text, there is an explicit expression describing the discrete dynamics. How do I look at the explicit form of my linearized system from Drake? I want to know the A,…
0
votes
1 answer

pass/fail school grades binary classification in weka

I'm using Weka for data mining. My data is considering school grades (numeric output between 0 and 20) . I want the grades to be modeled by Binary classification (i.e "pass" if grades>=10, else "fail"). But when I use discretization in Weka and do…
0
votes
1 answer

Discretize all rasters in stack in R

I am trying to simultaneously discretize 5 stacked rasters in R into quartile values. I've written the following loop to do so, but it doesn't seem to be working correctly. In the code, "stack.disc" is the stack and "quartiles" is a 5 column data…
0
votes
1 answer

Shift bin edges in uniform bin size - Python

I want to bin my data using fixed bin size but want to be able to shift bin edges to manipulate the number of data that ends up in bins. My only constraint is bin size and i want to maximize data points in successive bins eg: data = [10, 10, 10, 10,…
Zain Gill
  • 31
  • 5
0
votes
0 answers

Calculating the integral with x and x' (discretization) in Matlab?

I am currently trying to calculate the velocity distribution over an airfoil for a problem at work and am stuck on how to properly type this into Matlab. I know that x′ is a dummy chordwise coordinate I should use in the integral to distinguish it…
0
votes
0 answers

how to calculate the discrete number of steps per feature of dataset

I have been looking for a way to calculate the minimum number of samples required Ne(min) to train a classification model when the dataset is not normally distributed. A research paper suggests the following : if the data are not normally…
Taha Kamil
  • 25
  • 4
1 2 3
8 9