[R] Histogram equalization of dataset

SpaceSeller mario_zupan at inet.hr
Wed Mar 20 10:30:36 CET 2013


I read about histogram equalization of dataset. It is commonly used for image
data. It is written: Each variable in dataset is assigned to one bin. Then,
each variable in the dataset is assigned to one bin, incrementing the value
of that bin by one. Then, a cumulative histogram is created by adding to
each bin the value of its preceding bins. Finaly, the value of each bin is
divided by the total number of observations, thus standardizing the data
within the interval of [0,1].

Could you show me how to get it?
If a have  a dataset below:
              X1                                                            
X2
Min.   :-4.37371                                           Min.   :-27.84627   
 1st Qu.:-0.20558                                        1st Qu.:  0.00000  
 Median :-0.01528                                      Median :  0.07848
 Mean   :-0.04896                                       Mean   :  0.02751  
 3rd Qu.: 0.14511                                      3rd Qu.:  0.28831   
 Max.   : 0.78047                                       Max.   :  0.89851   



--
View this message in context: http://r.789695.n4.nabble.com/Histogram-equalization-of-dataset-tp4661887.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list