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
1 answer

Poisson (npr) Size Alteration Returns ValueError (wrt arbitrary paths and array creation)

If I sample a non-central chi-square distribution using a Poisson distribution, I am unable to alter the size and can only input the mean, "nc / 2" (I must set size = 1 or it also returns the same error): n = np.random.poisson(nc / 2, 1) #…
ikeagle
  • 1
  • 1
0
votes
0 answers

How to discretize multiple columns in R

I'm trying to discretize 274 columns in a table and run naive bayes and decision tree algorithms. How can you discretize many columns at once? My variable smalltrainv3 contains 275 columns, with the first being a factor (levels 0-9) and the being…
0
votes
0 answers

2D Area optimal discretization (segmentation)

I have many finite-length curves in XY domain. These curves are represented as collections of points. I need to discretize my area by rectangles (or triangles) so that each rectangle (or triangle) is crossed by more than 2 curves and less than 5…
Kerim
  • 171
  • 3
  • 10
0
votes
0 answers

Discretization simulation of a Wiener Process

I got some problems with this homework which I have totally no idea, never got into this field before and I really need some help. First, we have a wiener process like Which means the probability of the process drops beneath -3 within the time…
recon
  • 157
  • 9
0
votes
1 answer

How can I convert numerical classes to factors in WEKA?

In a dataset with numerical values in classes, for example like this: Class: 1.0, 2.0, 3.0, 4.0 WEKA open the dataset understanding Class label as a numerical, but I need WEKA interpret that variable as a categorical variable. I need to get…
racunen
  • 23
  • 6
0
votes
0 answers

How to correctly solve 1D wave equation to get displacement profile (periodic Boundary Condition problem)?

I'm trying to solve a 1D wave equation for the pile with periodic BC (periodic load). I'm pretty sure about my discretization formulas. The only thing I'm not sure about is the periodic BC and time (t) in there ==> sin(omega*t). When I set it up…
0
votes
1 answer

equal width discretization and categorization for an attribute in my data frame with continuous data type

One attribute in my data frame has continuous data type (aggregatedInocme), I would like to create a new attribute with (Low, Mid, high) categories based on the value in the (aggregatedInocme) attribute. I have divided the categorizes into three…
Farid
  • 169
  • 1
  • 8
0
votes
1 answer

How to discretize a signal?

If I have a function like below: G(s)= C/(s-p) where s=jw, c and p are constant number. Also, the available frequency is wa= 100000 rad/s. How can I discretize the signal at ∆w = 0.0001wa in Python?
Hey There
  • 275
  • 3
  • 14
0
votes
0 answers

attempt to select less than one element in integerOneIndex

I am trying to use mdlp package in R to discretize the continuous data that I created as an example. A=cbind(2,3,6,7,29,56,192,1256) A=t(A) mdlp(A) But I received the following error Error in cutp[[i]] <- cuts1 : attempt to select less than one…
stack
  • 93
  • 8
0
votes
1 answer

Should matrix entries inferior to machine precision be chopped to zero?

I have a code in double-precision complex arithmetic that forms large, sparse matrices (thanks to PETSc) in order to solve problems where high accuracy is typically needed (results converged to 7/8 digits, say) The resulting linear system Ax=b is…
0
votes
1 answer

Discretizing a list by another list of integers

I have a problem discretizing in python. I have a list st: st=[(-0.8,0.8),(-0.5,0.5),(-0.104,0.104),(-0.872,0.872)] I would like to discretize 'st' into a number of parts determined by a different list. In other words, I would like to divide each…
Stevy KUIMI
  • 47
  • 2
  • 6
0
votes
1 answer

Unsupervised discretization to convert continuous into categorical for frequent item set mining

I am using the Package ‘arules’ to mine frequent itemsets in my big data, but I cannot find suitable methods for discretization. As the example in Package ‘arules’, several basic unsupervised methods can be used in the function ‘discretization’,…
Pan
  • 193
  • 1
  • 2
  • 11
0
votes
1 answer

how to solve index out of bound in the discretization method in python

I'm trying to solve a PDE using discretization schemes the PDE in the form dudt=alphau+betadudx+gamma*d2udx2 *dudt the first derevative with respect to time **dudx the first derevative with respect to space ***d2udx2 the secound derevative with…
0
votes
0 answers

Constrained discretisation of curve on parametric surface

I have a boundary curve on a parametric surface. The curves knots are expressed in surface uv coordinates. Evaluating a curve point to 3D coordinates is computationally very expensive. I'm looking for a discretisation approach to distribute a…
0
votes
1 answer

Discretization of continuous 3 dimensional variables

I am currently working on Machine Learning classification problem that has 3 dimensional continuous variables (x, y, z ), I also want to add time(t) which is already a discrete variable. An example of what my data will look like: x …
1 2 3
8 9