321件ヒット
[1-100件を表示]
(0.121秒)
ライブラリ
- ビルトイン (33)
- matrix (60)
-
rdoc
/ context (96) -
rdoc
/ text (12) -
rdoc
/ top _ level (36) -
rexml
/ document (36) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ specification (12) - uri (24)
クラス
-
Gem
:: RemoteFetcher (12) -
Gem
:: Specification (12) - Matrix (12)
-
RDoc
:: Context (96) -
RDoc
:: TopLevel (36) -
REXML
:: Attribute (12) -
REXML
:: Entity (24) - String (33)
-
URI
:: Generic (24) - Vector (48)
モジュール
-
RDoc
:: Text (12)
キーワード
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) - classes (12)
-
each
_ classmodule (12) -
find
_ enclosing _ module _ named (12) -
find
_ local _ symbol (12) -
find
_ module _ named (24) - magnitude (12)
- modules (12)
- normal? (12)
- normalize (36)
- normalize! (12)
-
normalize
_ comment (12) -
normalize
_ uri (12) - normalized (12)
- normalized= (12)
- r (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unnormalized (12)
検索結果
先頭5件
-
Vector
# norm -> Float (18214.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
REXML
:: Attribute # normalized=(value) (12301.0) -
正規化された属性値を設定します。
...正規化された属性値を設定します。
通常はライブラリが自動的にこの値を設定するので
ユーザはこれを使う必要はないでしょう。
@param value 正規化された属性値... -
Vector
# normalize -> Vector (12229.0) -
自身を Vector#norm で正規化したベクトルを返します。
...Vector#norm で正規化したベクトルを返します。
@raise Vector::ZeroVectorError ベクトルが0である場合に発生します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 6, 9].normalize
# => Vector[0.18181818181818182, 0.5454545454545454, 0.8181818181818182]
v.norm # =>......1.0
//}
@see Vector#norm... -
String
# unicode _ normalize(form = :nfc) -> String (12219.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合......GB18030、UCS_2BE、and UCS_4BE を含みます。
また、self が UTF-8 以外のエンコーディングであった場合は一度 UTF-8 に変
換してから正規化されるため、UTF-8 よりも遅くなっています。
//emlist[例][ruby]{
"a\u0300".unicode_normalize # => 'à......"a\u0300".unicode_normalize(:nfc) # => 'à' ("\u00E0" と同じ)
"\u00E0".unicode_normalize(:nfd) # => 'à' ("a\u0300" と同じ)
"\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd)
# => Encoding::CompatibilityError raised
//}
@see String#unicode_normal... -
String
# unicode _ normalize!(form = :nfc) -> self (12213.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
...)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合......に発生します。
//emlist[例][ruby]{
text = "a\u0300"
text.unicode_normalize!(:nfc)
text == "\u00E0" # => true
text.unicode_normalize!(:nfd)
text == "a\u0300" # => true
//}
@see String#unicode_normalize, String#unicode_normalized?... -
String
# unicode _ normalized?(form = :nfc) -> bool (12213.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...正規化された文字列か
どうかを返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合......す。
//emlist[例][ruby]{
"a\u0300".unicode_normalized? # => false
"a\u0300".unicode_normalized?(:nfd) # => true
"\u00E0".unicode_normalized? # => true
"\u00E0".unicode_normalized?(:nfd) # => false
"\xE0".force_encoding('ISO-8859-1').unicode_normalized?......# => Encoding::CompatibilityError raised
//}
@see String#unicode_normalize, String#unicode_normalize!... -
Gem
:: RemoteFetcher # normalize _ uri(uri) -> String (12201.0) -
URI のスキーム部分が欠けている場合に "http://" を補って返します。
...URI のスキーム部分が欠けている場合に "http://" を補って返します。
@param uri URI 文字列を指定します。... -
Gem
:: Specification # normalize -> [String] (12201.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Matrix
# normal? -> bool (12201.0) -
行列が正規行列ならば true を返します。
...行列が正規行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します...