2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

deterministic function: RTXの関数一覧

Matrix of Real-Time Functions
https://www.intervalzero.com/library/RTX/WebHelp/Content/PROJECTS/SDK%20Reference/Matrixes/Matrix_of_Real_Time_Functions.htm

deterministicという欄がある。これ何?

Deterministicの説明
https://www.intervalzero.com/software/everything-you-wanted-to-know-about-deterministic-and-determinism-systems/

引用

「Ideally, deterministic functions return similar results whenever they are called with particular input values set and same database state. They are different from non-deterministic functions which can return varying results every time with specific input values set even when they access a database in the same state. For instance, AVG function returns similar output as long as the above qualifications are maintained. However, GETDATE function returns the current value of date-time with different results all the time.」

google翻訳
「理想的には、決定論的関数は、特定の入力値が設定され、同じデータベース状態で呼び出されたときは常に同様の結果を返します。 これらは、同じ状態でデータベースにアクセスする場合でも、特定の入力値を設定して毎回異なる結果を返す可能性がある非決定的関数とは異なります。」

入力が同じなら出力が同じのがdeterministic 入力が同じでも、対象の状態などによって出力が一定でないのがnon-deterministic

例えば、
RtGetDongles
https://www.intervalzero.com/library/RTX/WebHelp/Content/PROJECTS/SDK%20Reference/RTRef/RtGetDongles.htm

ドングルを誰かが抜いちゃえば、答えは変わる。

deterministic関数に、もし時間がかかって入れば、関数呼び出しではなく、計算をあらかじめしておいて、テーブル引きで答えを出すことができる。

あるいは、同じ引数で呼ぶことがあれば、前の結果を再利用してもよい。

文書履歴(document history)

ver. 0.01 初稿 20190128
ver. 0.04 URL追記 20230228

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

2
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?