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!