Scales in operator ParameterOptimization

Clan21
Clan21 New Altair Community Member
edited November 5 in Community Q&A
Hello,
in ParameterOptimization operator is button Edit Parameter Setting which display window where is possible to change values of parameters or its type. I have question about values writed like intervals. I cant figure out how with logarithmic scale RM calculate values in particular step. Thanks for help.
Cheers Andrew

Answers

  • land
    land New Altair Community Member
    Hi,
    here's the code generating the sequence:
    double[] values = new double[steps + 1];
    double offset = 1 - min;
    for (int i = 0; i < steps + 1; i++) {
    values = Math.pow(max + offset, (double) i / (double) steps) - offset;
    }
    return values;
    Greetings,
      Sebastian
  • Clan21
    Clan21 New Altair Community Member
    Thanks. Helps a lot.