Sha256: 3f6135eb5eb2c408f36600fd08bd2635806b5282decbce14e014fdae97fb4432

Contents?: true

Size: 782 Bytes

Versions: 112

Compression:

Stored size: 782 Bytes

Contents

.. -*- rst -*-

.. highlightlang:: none

edit_distance
=============

名前
----

edit_distance - 指定した2つの文字列の編集距離を計算する

書式
----
::

 edit_distance(string1, string2)

説明
----

Groonga組込関数の一つであるedit_distanceについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。

edit_distance() 関数は、string1に指定した文字列とstring2に指定した文字列の間の編集距離を求めます。

引数
----

``string1``

  文字列を指定します

``string2``

  もうひとつの文字列を指定します


返値
----

指定した2つ文字列の編集距離をUint32型の値として返します。

例
--
::

 edit_distance(title, "hoge")
 1

Version data entries

112 entries across 56 versions & 1 rubygems

Version Path
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt