Sha256: f0e0cfa3b8d79e4001441d5ec9f737932b4d32e78404f4f119122e160694bd46

Contents?: true

Size: 782 Bytes

Versions: 77

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

77 entries across 31 versions & 1 rubygems

Version Path
rroonga-3.1.1-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.1-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.9-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.9-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.9-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.9-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.8-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.8-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.8-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.8-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt
rroonga-3.0.6-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt