Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 253985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:48:31+00:00 2026-05-11T21:48:31+00:00

At present I have a control to which I need to add the facility

  • 0

At present I have a control to which I need to add the facility to apply various acuteness (or sensitivity). The problem is best illustrated as an image:

Graph http://img87.imageshack.us/img87/7886/control.png

As you can see, I have X and Y axess that both have arbitrary limits of 100 – that should suffice for this explanation. At present, my control is the red line (linear behaviour), but I would like to add the ability for the other 3 curves (or more) i.e. if a control is more sensitive then a setting will ignore the linear setting and go for one of the three lines. The starting point will always be 0, and the end point will always be 100.

I know that an exponential is too steep, but can’t seem to figure a way forward. Any suggestions please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:48:32+00:00Added an answer on May 11, 2026 at 9:48 pm

    The curves you have illustrated look a lot like gamma correction curves. The idea there is that the minimum and maximum of the range stays the same as the input, but the middle is bent like you have in your graphs (which I might note is not the circular arc which you would get from the cosine implementation).

    Graphically, it looks like this:

    alt text
    (source: wikimedia.org)

    So, with that as the inspiration, here’s the math…

    If your x values ranged from 0 to 1, the function is rather simple:

    y = f(x, gamma) = x ^ gamma
    

    Add an xmax value for scaling (i.e. x = 0 to 100), and the function becomes:

    y = f(x, gamma) = ((x / xmax) ^ gamma) * xmax
    

    or alternatively:

    y = f(x, gamma) = (x ^ gamma) / (xmax ^ (gamma - 1))
    

    You can take this a step further if you want to add a non-zero xmin.

    When gamma is 1, the line is always perfectly linear (y = x). If x is less than 1, your curve bends upward. If x is greater than 1, your curve bends downward. The reciprocal value of gamma will convert the value back to the original (x = f(y, 1/g) = f(f(x, g), 1/g).

    Just adjust the value of gamma according to your own taste and application needs. Since you’re wanting to give the user multiple options for “sensitivity enhancement”, you may want to give your users choices on a linear scale, say ranging from -4 (least sensitive) to 0 (no change) to 4 (most sensitive), and scale your internal gamma values with a power function. In other words, give the user choices of (-4, -3, -2, -1, 0, 1, 2, 3, 4), but translate that to gamma values of (5.06, 3.38, 2.25, 1.50, 1.00, 0.67, 0.44, 0.30, 0.20).

    Coding that in C# might look something like this:

    public class SensitivityAdjuster {
        public SensitivityAdjuster() { }
        public SensitivityAdjuster(int level) {
            SetSensitivityLevel(level);
        }
        private double _Gamma = 1.0;
        public void SetSensitivityLevel(int level) {
            _Gamma = Math.Pow(1.5, level);
        }
        public double Adjust(double x) {
            return (Math.Pow((x / 100), _Gamma) * 100);
        }
    }
    

    To use it, create a new SensitivityAdjuster, set the sensitivity level according to user preferences (either using the constructor or the method, and -4 to 4 would probably be reasonable level values) and call Adjust(x) to get the adjusted output value. If you wanted a wider or narrower range of reasonable levels, you would reduce or increase that 1.5 value in the SetSensitivityLevels method. And of course the 100 represents your maximum x value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the required behaviour: I have various controls present on the canvas e.g.
I have a couple of views which present data from a CoreData entity in
I have an ordered string that I need to present to a user: ABCCDDCBBBCBBDDBCAAA
I have various time-series I'd like to correlate and present as either a csv-file
I have 3 user controls, each one of which will need to pull data
I have a form in which I have a ComboBox control with two values.
In the MS Chart control (which they bought from Dundas), I have three series
At present I have a TestNG project that calls a JBoss RESTEasy web service.
At present we have a denormalised database. ie Name|NameID|EmployeeID|EmployeeType I'm normalising the database to
Present Scenario : I have a set of classes that all take a common

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.