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

How can I discretize a set of values in WEKA?

I have a set of integer values from 1 to 50 and I´d like to discretize this set in order to work with ranges instead of individual values (they are a huge amount of numbers for a decision tree). Let´s say I want a range from 1 to 25 and another…
chick3n0x07CC
  • 678
  • 2
  • 10
  • 30
0
votes
1 answer

Inability to discretize data in R for Association Rules (apriori)

Good day, I have been trying to use arules and apriori in R for my data but to no avail. For instance, my data are from excel (csv format) and it has 1000 experiment with 1 and 0. As you can see, discretize seems to destroy the data for the column…
Jin
  • 1
0
votes
2 answers

MATLAB: Speeding up a discretization function using bsxfun

For a current project, I have to discretize quasi-continuous values into bins defined by some pre-defined binning resolution. For this purpose, I have written a function, which I expected to be highly efficient as it is able to both process scalar…
Michael
  • 280
  • 2
  • 13
0
votes
0 answers

How to count bucket's values with Pandas qcut?

I'm using qcut from Pandas to properly prepare my data for a machine learning algorithm. I have products with prices, and I discretized my data into equal-sized buckets with this code : df['PriceBucket'] = pd.qcut(df['sell_prix'].sort_values(), 10,…
Arij SEDIRI
  • 2,088
  • 7
  • 25
  • 43
0
votes
1 answer

implementation of generic transfer function using Matlab

I would like to know can anyone tell me how to implement transfer function a1s+a2/(b1s+b2) using Matlab meaning with for loop in the discrete form not using tf([a1 a2],[b1 b2]). For example if I want to implement a1/s I know I would do something…
justin
  • 173
  • 2
  • 3
  • 11
0
votes
1 answer

Continuous time system discretization, and matrix exponential, Output truncated

There is a continuous-time system shown below: The matlab codes are: t=0.01; syms s; a2=[0 0 -285.7143;0 -0.4533 9.0662;5.2650 -5.2131 -42.5958]; b2=[571.4286;0;82.5714]; c2=[1 0 0]; A2=expm(a2*t); B2=(int(expm(a2*s),0,t)*b1); However, when I…
0
votes
1 answer

Inconsistent behaviour of `cut`: Different intervals with same number and same displayed cut points

I encountered the following inconsistent behaviour of cut which gives me a headache: x <- 0.2316 cut(x, c(0, 0.2315, 10)) #gives 0.232 as cutpoint and choses second interval ## [1] (0.232,10] ## Levels: (0,0.232] (0.232,10] cut(x, c(0, 0.232, 10))…
vonjd
  • 4,202
  • 3
  • 44
  • 68
0
votes
1 answer

Simulink: Real-Time Cross Correlation

I am working on a project, it's complicated to explain fully but it goes as follows: We have 2 signals A and B, where B is a time delayed echo of A. I want to use Real-Time Cross Correlation to show that the time delay will remain constant while the…
0
votes
1 answer

MATLAB: how to discretize a function of 10 variables (currently using ndgrid and arrayfun)?

I have a function function [output1 output2] = func(v1,v2,v3,v4,v5,v6,v7,v8,v9,v10) that I want to discretize. I am going to be performing optimization that involves this function and I think the optimization's efficiency would benefit from…
user178831
  • 49
  • 5
0
votes
1 answer

Discretization of a continuous state-space model

I implemented the mathematical model of the inverted pendulum in Simulink following the paper http://www.uta.edu/utari/acs/ee4314/lectures/Lecture%207b.pdf (last page). My task now is to discretize such model and design a discrete controller in…
Alexis
  • 576
  • 1
  • 10
  • 29
0
votes
1 answer

How to control the CutPoints(while performing supervised binning) in R

I am using the 'discretization' package of R. While finding the cut points I am getting the following result. Command : discretization::cutPoints(data3$Dist_to_Stream, data3$Malaria_w3) where Dist_to_Stream is a variable of numeric values and…
silk_route11
  • 324
  • 3
  • 17
0
votes
0 answers

Bins with two characteristics matlab

I have data stored for N=1000 elements (air conditioners, ACs). Each element has a number of characteristics, mainly their temperature, and the binary state of the ON/OFF switch. All this data is already generated and stored in the following way:…
titus.andronicus
  • 517
  • 1
  • 7
  • 19
0
votes
0 answers

How to discretize data (SIFT features)?

My input data looks like [1,1,0,0,0,0,1,0,24,3,0,0,0......] These are SIFT features for images and they are 128 dimensions for each sample likewise I have about 100,000 samples each with 128 dimensions. I want to discretize these features. Is…
Sanathana
  • 284
  • 4
  • 16
0
votes
3 answers

Discretizing score relative to mean

I have data with a date, zip code and score. I would like to discretize the data such that all rows of the same month and same zip code above the mean for that same month and zip code get a 1, all others get a zero. so example (data frame is called…
Michal
  • 1,863
  • 7
  • 30
  • 50
0
votes
1 answer

In Weka, how can I stop CfsSubsetEval from discretizing training instances?

I am trying to write a java program which calls CfsSubsetEval class in Weka to perform feature subset selection. CfsSubsetEval discretises the dataset, and I am trying to avoid that as the dataset is already discretized. The following are the lines…
user52732
  • 3
  • 3
1 2 3
8
9