Searched refs:sigmoid (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/services/java/com/android/server/power/
H A DElectronBeam.java615 * Interpolates a value in the range 0 .. 1 along a sigmoid curve
620 // A basic sigmoid has the form y = 1.0f / FloatMap.exp(-x * s).
625 // Next apply the sigmoid function to the scaled value
628 final float y = sigmoid(x, s) - 0.5f;
632 final float v = sigmoid(0.5f, s) - 0.5f;
638 private static float sigmoid(float x, float s) { method in class:ElectronBeam

Completed in 62 milliseconds