時系列データの外れ値を置換する方法
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
取得されたある規則性を持った連続したデータに外れ値(今回は99とする)があった場合の置換方法を教えてください。
例えば、下のようなデータが取得され、
連続した50の並びの中に一つだけ0が混同したり、逆に0の並びに50が混同する場合にはその値を正しい並びに置換することは可能でしょうか?
x = [0,0,0,0,0,0,0,0,0,0,50,50,99,50,50,50,50,50,50,50,0,0,0,0,0,0,0,0,99,0]
出力したい結果としては、下記のような外れ値がない
または、 True or Falseの形で出力したいと考えています。
x = [0,0,0,0,0,0,0,0,0,0,50,50,50,50,50,50,50,50,50,50,0,0,0,0,0,0,0,0,0,0]
or
x = [0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]
何か良い方法がありましたらご教授お願いします。
10 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!