了解 h 指数计算的术语
Understanding terms for h-index calculation
我正在尝试为我的研究引用创建一个 h-index 计算器 (https://en.wikipedia.org/wiki/H-index#Calculation),但我对如何以代码形式表示数学感到困惑(遗憾的是这不是我的强项)。这是来自 wiki 的计算:
h 指数(f) =
并排最大最小值是什么意思?我似乎无法在网上找到任何相关信息。我认为最大值下方的 'i' 代表等式中使用的值范围的开始。我在多个网站上寻找 simplified/more 比一大堆 IF 语句更优雅的计算,但无济于事。
抱歉,如果这没有发布在正确类型的论坛上。我不是要别人写代码,只是想帮助理解如何在 python 或 excel.
中表示不同的术语
感谢您的帮助
maxmin 中没有特殊含义您正在寻求最大化 f(i) 和 i.[=10 中的最小值=]
对于 i 的每个值,您计算 f(i) 和 i 和取这两个值中较小的(最小值)。如果我们将这个最小值称为 g(i),我们正在寻找 g(i).
的最大值
如果要计算h-index,可以使用scholarmetrics
模块。
https://scholarmetrics.readthedocs.io/en/latest/
def get_h_index(citations):
citations = sorted(citations, reverse=True)
for idx, item in enumerate(citations, 1):
if item < idx:
break
return idx - 1
citations = [10,8,5,4,3]
h_index = get_h_index(citations)
print(h_index)
# yields 4
other_citations = [25,8,5,3,3]
h_index = get_h_index(other_citations)
print(h_index)
# yields 3
我正在尝试为我的研究引用创建一个 h-index 计算器 (https://en.wikipedia.org/wiki/H-index#Calculation),但我对如何以代码形式表示数学感到困惑(遗憾的是这不是我的强项)。这是来自 wiki 的计算:
h 指数(f) =
并排最大最小值是什么意思?我似乎无法在网上找到任何相关信息。我认为最大值下方的 'i' 代表等式中使用的值范围的开始。我在多个网站上寻找 simplified/more 比一大堆 IF 语句更优雅的计算,但无济于事。
抱歉,如果这没有发布在正确类型的论坛上。我不是要别人写代码,只是想帮助理解如何在 python 或 excel.
中表示不同的术语感谢您的帮助
maxmin 中没有特殊含义您正在寻求最大化 f(i) 和 i.[=10 中的最小值=]
对于 i 的每个值,您计算 f(i) 和 i 和取这两个值中较小的(最小值)。如果我们将这个最小值称为 g(i),我们正在寻找 g(i).
的最大值如果要计算h-index,可以使用scholarmetrics
模块。
https://scholarmetrics.readthedocs.io/en/latest/
def get_h_index(citations):
citations = sorted(citations, reverse=True)
for idx, item in enumerate(citations, 1):
if item < idx:
break
return idx - 1
citations = [10,8,5,4,3]
h_index = get_h_index(citations)
print(h_index)
# yields 4
other_citations = [25,8,5,3,3]
h_index = get_h_index(other_citations)
print(h_index)
# yields 3