283件ヒット
[1-100件を表示]
(0.071秒)
種類
- インスタンスメソッド (217)
- 特異メソッド (44)
- 定数 (22)
ライブラリ
- ビルトイン (30)
- matrix (55)
-
rdoc
/ context (55) -
rdoc
/ text (11) -
rdoc
/ top _ level (33) -
rexml
/ document (55) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ specification (11) - socket (22)
クラス
-
Gem
:: RemoteFetcher (11) -
Gem
:: Specification (11) - Matrix (11)
-
RDoc
:: Context (55) -
RDoc
:: TopLevel (33) -
REXML
:: Attribute (11) -
REXML
:: Entity (22) -
REXML
:: Text (22) - Socket (11)
- String (30)
- Vector (44)
モジュール
-
RDoc
:: Text (11) -
Socket
:: Constants (11)
キーワード
-
SOPRI
_ NORMAL (22) -
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ module (11) -
each
_ classmodule (11) -
find
_ class _ named (11) -
find
_ module _ named (22) - magnitude (11)
- normal? (11)
- normalize (22)
-
normalize
_ comment (11) -
normalize
_ uri (11) -
normalize
_ yaml _ input (11) - normalized (11)
- normalized= (11)
- r (11)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - unnormalize (11)
- unnormalized (11)
検索結果
先頭5件
-
Vector
# norm -> Float (15119.0) -
ベクトルの大きさ(ノルム)を返します。
...ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize... -
Vector
# normalize -> Vector (6140.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... -
REXML
:: Text . unnormalize(string , doctype = nil , filter = nil , illegal = nil) -> String (6124.0) -
string を非正規化(すべての entity をアンエスケープ)したものを 返します。
...。
@param string 非正規化する文字列
@param doctype DTD(REXML::DocType オブジェクト)
@param filter アンエスケープしない実体の実体名(文字列配列)
@param illegal 内部用。使わないでください。
//emlist[][ruby]{
require 'rexml/text'
REXML::Text.unnormali......ze("& &foobar; <") # => "& &foobar; <"
REXML::Text.unnormalize("< >", nil, ["lt"]) # => "< >"
//}... -
REXML
:: Text . normalize(input , doctype = nil , entity _ filter = nil) -> String (6118.0) -
input を正規化(すべての entity をエスケープ)したものを 返します。
...input を正規化(すべての entity をエスケープ)したものを
返します。
@param input 正規化する文字列
@param doctype DTD(REXML::DocType オブジェクト)
@param entity_filter 置換したい実体の名前の配列... -
String
# unicode _ normalize!(form = :nfc) -> self (6118.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 _ normalize(form = :nfc) -> String (6118.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
...正規化形式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではな......mlist[例][ruby]{
"a\u0300".unicode_normalize # => 'à' ("\u00E0" と同じ)
"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_normalize!, String#unicode_normalized?... -
String
# unicode _ normalized?(form = :nfc) -> bool (6118.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
...で 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!... -
Socket
:: Constants :: SOPRI _ NORMAL -> Integer (6116.0) -
Normal socket priority @todo
...Normal socket priority
@todo... -
Socket
:: SOPRI _ NORMAL -> Integer (6116.0) -
Normal socket priority @todo
...Normal socket priority
@todo... -
RDoc
:: Text # normalize _ comment(text) -> String (6112.0) -
引数から行頭のスペースや改行文字などを削除します。
...から行頭のスペースや改行文字などを削除します。
詳しくは [SEE ALSO] の各メソッドを参照してください。
@param text 文字列を指定します。
@see RDoc::Text#strip_hashes, RDoc::Text#expand_tabs,
RDoc::Text#flush_left, RDoc::Text#strip_newlines...