「ロジスティック関数」の版間の差分

編集の要約なし
編集の要約なし
15行目: 15行目:
: <math>S(x) = \frac{1}{1 + e^{-x}}</math>
: <math>S(x) = \frac{1}{1 + e^{-x}}</math>


C# で書くとこんな感じ。
<source lang="csharp">
<source lang="csharp">
float logistic(float x) {
float logistic(float x) {