Inf or NaN vaiues normalize into [0 1]

2 ビュー (過去 30 日間)
JunGi Kim
JunGi Kim 2020 年 3 月 19 日
コメント済み: JunGi Kim 2020 年 3 月 20 日
Hi, I'm trying to normalize into [0 1].
Could you help me?
I want to normalize two variables. W_1 and W_2
X = [Xmin ~ Xmax],
D = [1 ~ 6]
First, I try to find maximum & minimum values of these W.
But, Because of (Xmax-Xmax) form, W2 has Inf Value.
Do you have any Idea to normalize?

回答 (1 件)

KSSV
KSSV 2020 年 3 月 19 日
use
xnew = (x-xmin)/(xmax-xmin)
  3 件のコメント
KSSV
KSSV 2020 年 3 月 20 日
why? Is your xmin and xmax are same? all zeros?
JunGi Kim
JunGi Kim 2020 年 3 月 20 日
And, I want to find
As I think, denominator should be min, numerator should be max.
Then D = 6, X = Xmax...
Is it wrong?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by