Ignore:
Timestamp:
02/04/20 19:18:52 (5 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/impl/neuroimpl-channels.cpp

    r791 r907  
    2020        s = (max(-1.0, min(1.0, s)) + 1.0) / 2.0; // 0..1
    2121        int i1;
    22         i1 = (int)(s*(c - 1)); i1 = max(0, min(i1, c - 2));
     22        i1 = (int)(s * (c - 1)); i1 = max(0, min(i1, c - 2));
    2323        double sw = 1.0 / (c - 1);
    24         double s1 = sw*i1;
     24        double s1 = sw * i1;
    2525        double w1 = fabs((s - s1) / sw);
    2626        double w2 = 1.0 - w1;
    2727        double is1 = getWeightedInputState(1, i1);
    2828        double is2 = getWeightedInputState(1, i1 + 1);
    29         setState(is1*w2 + is2*w1);
     29        setState(is1 * w2 + is2 * w1);
    3030}
    3131
Note: See TracChangeset for help on using the changeset viewer.