utility-function-extractor/README.md

29 lines
1.4 KiB
Markdown
Raw Normal View History

2021-10-06 11:29:09 +00:00
## About
This repository creates a react webpage that allows to extract a utility function from possibly inconsistent binary comparisons. It presents the users with a series of elements to compare, using merge-sort in the background to cleverly minimize the number of choices needed. Then, it cleverly aggregates them, by taking each element as a reference point in turn, and computing the possible distances from that reference point to all other points, and taking the geometric mean of these distances. This produces a number representing the value of each element, such that the ratios between elements represent the user's preferences: a utility function!
Initially, users could only input numbers, e.g., "A is `3` times better than B". But now, users can also input distributions, using the [squiggle]() syntax, e.g., "A is `1 to 10` times better than B", or "A is `mm(normal(1, 10), uniform(0,100))` better than B".
2021-10-06 12:14:18 +00:00
## Object structure
2021-10-06 11:29:09 +00:00
The core structure is json array of objects. Only the "name" attribute is required. If there is a "url", it is displayed nicely.
2021-11-25 11:09:17 +00:00
```
[
{
"name": "Peter Parker",
"someOptionalKey": "...",
2021-10-06 11:29:09 +00:00
"anotherMoreOptionalKey": "...",
},
{
"name": "Spiderman",
"someOptionalKey": "...",
"anotherMoreOptionalKey": "..."
}
]
2022-01-28 20:51:29 +00:00
```
## Netlify
2022-01-28 20:51:29 +00:00
https://github.com/netlify/netlify-plugin-nextjs/#readme