case-based function

noun
UK /ˈkeɪs beɪst ˈfʌŋkʃən/
US /ˈkeɪs beɪst ˈfʌŋkʃən/

A case-based function is a rule that gives a different answer for each different situation.

The case-based function tells the robot to stop when it sees red and go when it sees green.


OTHER MEANINGS

2. In programming, a function that chooses its result by matching the input against a list of cases.

The case-based function returned 'weekend' for Saturday and Sunday.

3. In math, a function defined by different formulas on different parts of its domain.

The case-based function charges a flat fee for the first hour and a lower rate after that.

4. In machine learning, a method that predicts by comparing a new item to stored example cases.

The case-based function found the most similar past patient to suggest a treatment.