Add companies count and weighting to ranking metrics

This commit is contained in:
Steven Tischer
2026-07-17 15:27:06 +02:00
parent 67dbc2a833
commit 0cc22dc109
3 changed files with 22 additions and 3 deletions
+4
View File
@@ -25,6 +25,10 @@ export interface RankedAuthor {
* Total citations across this author\'s matching works.
*/
citations_count: number;
/**
* Number of Handelsregister company connections matched by the author\'s name (proxy for company foundations).
*/
companies_count?: number;
/**
* Normalized weighted score used for ranking.
*/
@@ -17,4 +17,8 @@ export interface RankingWeights {
* Weight for the works metric (0.0 - 1.0).
*/
works: number;
/**
* Weight for the company-foundations metric (0.0 - 1.0).
*/
companies?: number;
}
@@ -82,10 +82,11 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
readonly selectedIds = signal<string[]>([]);
readonly canCompare = computed(() => this.selectedIds().length >= 1);
// for now only works and citations are used as metrics/weights
// works, citations and company foundations are used as metrics/weights
readonly defaultWeights: WeightMap = {
works: 0.5,
citations: 0.5,
companies: 0.5,
};
readonly weightOptions: WeightSliderOption[] = [
@@ -106,6 +107,15 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
defaultValue: 0.5,
queryParamName: 'wCitations',
},
{
key: 'companies',
label: 'Unternehmensgründungen',
icon: 'business',
description:
'Gewichtet die Anzahl der Unternehmensgründungen (Handelsregister-Verbindungen).',
defaultValue: 0.5,
queryParamName: 'wCompanies',
},
/*{
key: 'patents',
label: 'Patente',
@@ -134,8 +144,8 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
readonly currentWeights = signal<WeightsSlidersValue>({
raw: this.defaultWeights,
normalized: { works: 0.5, citations: 0.5 },
rawSum: 1,
normalized: { works: 1 / 3, citations: 1 / 3, companies: 1 / 3 },
rawSum: 1.5,
normalizedSum: 1,
valid: true,
});
@@ -327,6 +337,7 @@ export class KeywordsToPersonsResultsComponent implements OnInit {
weights: {
works: rawWeights['works'],
citation: rawWeights['citations'],
companies: rawWeights['companies'],
},
timespan: {
from: this.timespanFrom(),