来自JavaArrayList的描述性统计
我有来自JavaArrayList的描述性统计,java,google-app-engine,arraylist,Java,Google App Engine,Arraylist,我有Profile对象的数组列表配置文件具有诸如年龄、性别、国家等属性 java中是否有任何库可以方便地提供描述性统计信息,如女性个人资料的数量、男性个人资料的数量、来自美国的女性个人资料的数量以及其他复杂的报告 使用的环境是Google App Engine 谢谢您可以在apache commons数学中使用描述性统计,例如 // Get a DescriptiveStatistics instance DescriptiveStatistics stats = new Descriptive
Profile
对象的数组列表<代码>配置文件具有诸如年龄
、性别
、国家
等属性
java中是否有任何库可以方便地提供描述性统计信息,如女性个人资料的数量、男性个人资料的数量、来自美国的女性个人资料的数量以及其他复杂的报告
使用的环境是Google App Engine
谢谢您可以在apache commons数学中使用描述性统计,例如
// Get a DescriptiveStatistics instance
DescriptiveStatistics stats = new DescriptiveStatistics();
// Add the data from the array
for( int i = 0; i < inputArray.length; i++) {
stats.addValue(inputArray[i]);
}
// Compute some statistics
double mean = stats.getMean();
double std = stats.getStandardDeviation();
//获取DescriptiveStatistics实例
DescriptiveStatistics stats=新的DescriptiveStatistics();
//从数组中添加数据
for(int i=0;i
您需要将性别/国家信息添加到commons math提供的描述性统计中。希望有帮助。您可以使用一个简单的库,如 它专门用于数字统计,具有以下功能:
- 卑鄙
- 中间带
- 模式
- 射程
- 差异
- 标准差
干杯 好奇-你在找别的东西吗?