How to get original Shape of data after Removing Noise using Histogram
1 回表示 (過去 30 日間)
古いコメントを表示
Hello I hope you are doing well. I have the Dataset which have 279 values in array.
I have applied Preprocessing using Histogram which delete Noise using 33% of maximum Value
The first picture oldshape.jpg shows the Original shape at 338,343,348 with Noise.
The 2nd picture Newshape.jpg shows after applying Histogram In which shape is changed.
How can i get the original Shape after this algo of Histogram
h=histogram(NewDataset,10000,"BinMethod","sturges",'BinWidth',1,'BinLimits',[1 10000]);
[N,Edges,Bin] = histcounts(NewDataset,10000,"BinMethod","sturges",'BinWidth',1,'BinLimits',[1 10000]);
Retain = N > max(N)/3; % Retain Values In Bins Greater Than One-Third Of The Meximum Bin Count Value
FindBins = find(Retain)
DatasetValues = cell(1,length(FindBins));
for i=1:length(FindBins)
RetainDataLv = (Bin == FindBins(i)); % Values In 'Bin' Corresponding To 'Retain' Test
RetainData = NewDataset(RetainDataLv) ;
DatasetValues{i}=RetainData;
pre_output= cell2mat(DatasetValues);
end
figure;
scatter(1:length(pre_output),pre_output)
2 件のコメント
Jan
2023 年 1 月 28 日
@Med Future: Please do not address specific users. Remember, that they get a notification, if you type "@xyz". If all users call some preferred other members, there will be huge number of notifications. Reading them reduces the time for posting answers, so with such notifications you try to increase your chance to get an answer on the costs of others.
Use these notifications only for persons, who are involved in the discussion already. Thanks.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!