
Device Matrix Reducer
Reads a list of devices, OS versions, and market-share weights and outputs a reduced matrix that covers at least ninety percent of the weighted user base within a slot budget.
Lists excluded combinations with reasons. The files open in your own spreadsheet, calendar and text programs.
Not financial, tax or accounting advice. For a money decision, ask a qualified professional.
$10.00 USD, one-time
Buying this pack gets you a licence to use it, not ownership of the files.
- Download right after payment, and by email.
- Opens in your own spreadsheet, calendar and text programs.
- Refund within 14 days, for any reason.
- Payment is handled by Stripe.
Terms of Sale · Buyer Licence · Refund Policy · Privacy Policy
What it does
Reads a list of devices, OS versions, and market-share weights and outputs a reduced matrix that covers at least ninety percent of the weighted user base within a slot budget. Lists excluded combinations with reasons. The files open in your own spreadsheet, calendar and text programs.
What's inside
- Device Matrix Reducer: README.md, index.html, marketshare.json, reduce.js.
With a README and the Teranite Facet Buyer Licence.
Sample
Device Matrix Reducer
Reads a list of devices, OS versions, and market-share weights and outputs a reduced matrix that covers at least ninety percent of the weighted user base within a slot budget. Lists excluded combinations with reasons.
Files: README.md, index.html, marketshare.json, reduce.js. reduce.js, start of the file:
async function loadData() {
try {
const response = await fetch('marketshare.json');
return await response.json();
} catch (e) {
console.error("Error loading data", e);
return [];
}
}
function calculateReduction(data, budget) {
// Sort by share descending to prioritize high-impact devices
const sorted = [...data].sort((a, b) => b.share - a.share);
const selected = [];
const excluded = [];
let currentCoverage = 0;
for (let i = 0; i < sorted.length; i++) {
const item = sorted[i];
if (selected.length < budget) {
selected.push(item);
currentCoverage += item.share;
} else {
excluded.push({
...item,
reason: `Exceeds budget of ${budget} slots`
});
}
}
return {
selected,
excluded,
totalCoverage: currentCoverage * 100
};
}
async function runReducer() {
const budgetInput = document.getElementById('budget');
const budget = parseInt(budgetInput.value);
const data = await loadData();
if (!data || data.length === 0) {
document.getElementById('statRequirements
- A program that opens the file types listed.
- Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
- Not opened in other programs.
Install
Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.
Licence
One licence covers one person. Your finished work is yours. Do not share or resell the files.
How it is made
Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.
Support
Questions, or a fault: support
More from Spreadsheet templates
See allDocument kitApiary Expense LogThe files open in your own spreadsheet, calendar and text programs.$10.00View
Document kitBuyer Agent Question SheetThe files open in your own spreadsheet, calendar and text programs.$10.00View
Document kitCharity Run Fundraising TrackerThe files open in your own spreadsheet, calendar and text programs.$10.00View
Document kitColony Split PlannerThe files open in your own spreadsheet, calendar and text programs.$10.00View