软件开发者在开发过程遇到应用程序编程接口(application programming interface,API)使用问题时,通常希望能够得到有效的API使用模式建议,从而帮助其学习和使用.传统的API推荐方法会挖掘和学习代码库中API的使用知识,然后给开发者推荐...软件开发者在开发过程遇到应用程序编程接口(application programming interface,API)使用问题时,通常希望能够得到有效的API使用模式建议,从而帮助其学习和使用.传统的API推荐方法会挖掘和学习代码库中API的使用知识,然后给开发者推荐与上下文相关的API.然而由于上下文信息表征不够充分,以及推荐列表中冗余项和同质化内容的出现影响了推荐性能.针对这一问题,构建项目和方法与API的API层次调用图(API hierarchy call graph,AHCG)模型以更好地表达API上下文关系,充分利用API结构信息和语义信息来减少冗余项和降低同质化内容被推荐的可能性,进而提出基于上下文感知并面向多样性的API推荐(context-aware based API recommendation with diversity,CAPIRD)方法.该方法中引入相关性度量和关联性度量,最大限度地保留相关结果,同时平衡已选API与候选API的关联性,以尽可能挖掘到合理的初选API列表.最后结合最大边缘相关算法,在标准模式数据集上学习相关性和关联性的最佳权重组合,并进行多样性重排推荐.在2210个项目构成的3类数据集上进行实验并验证推荐性能,实验结果表明,CAPIRD在基于上下文的API推荐场景下能够有效提高推荐性能.在所有数据集的API推荐中,平均精度(mean average precision,MAP)指标平均提升值约9%,在Top-1的推荐中,成功率(success rate)指标平均提升约13%.展开更多
Stiffener is the important missile structure to ensure the structural strength of the missile. In order to improve the design efficiency and the quality of the missile stiffener, the methods of missile stiffener rapid...Stiffener is the important missile structure to ensure the structural strength of the missile. In order to improve the design efficiency and the quality of the missile stiffener, the methods of missile stiffener rapid modeling and analysis are proposed. First, the problems of traditional manual modeling of the stiffener are analyzed. According to the problems and actual requirement of modeling, volume decomposition method is used to divide the stiffener into the upper section, the lower section and the web in order for feature analysis and parameter extraction. Then based on the parameters the basic unit decomposed above is created for Boolean operation to establish the stiffener. Finally, a rapid stiffener modeling and analysis program were developed based on UG Open API, the modeling and analysis result validates the feasibility of the method.展开更多
文摘软件开发者在开发过程遇到应用程序编程接口(application programming interface,API)使用问题时,通常希望能够得到有效的API使用模式建议,从而帮助其学习和使用.传统的API推荐方法会挖掘和学习代码库中API的使用知识,然后给开发者推荐与上下文相关的API.然而由于上下文信息表征不够充分,以及推荐列表中冗余项和同质化内容的出现影响了推荐性能.针对这一问题,构建项目和方法与API的API层次调用图(API hierarchy call graph,AHCG)模型以更好地表达API上下文关系,充分利用API结构信息和语义信息来减少冗余项和降低同质化内容被推荐的可能性,进而提出基于上下文感知并面向多样性的API推荐(context-aware based API recommendation with diversity,CAPIRD)方法.该方法中引入相关性度量和关联性度量,最大限度地保留相关结果,同时平衡已选API与候选API的关联性,以尽可能挖掘到合理的初选API列表.最后结合最大边缘相关算法,在标准模式数据集上学习相关性和关联性的最佳权重组合,并进行多样性重排推荐.在2210个项目构成的3类数据集上进行实验并验证推荐性能,实验结果表明,CAPIRD在基于上下文的API推荐场景下能够有效提高推荐性能.在所有数据集的API推荐中,平均精度(mean average precision,MAP)指标平均提升值约9%,在Top-1的推荐中,成功率(success rate)指标平均提升约13%.
文摘Stiffener is the important missile structure to ensure the structural strength of the missile. In order to improve the design efficiency and the quality of the missile stiffener, the methods of missile stiffener rapid modeling and analysis are proposed. First, the problems of traditional manual modeling of the stiffener are analyzed. According to the problems and actual requirement of modeling, volume decomposition method is used to divide the stiffener into the upper section, the lower section and the web in order for feature analysis and parameter extraction. Then based on the parameters the basic unit decomposed above is created for Boolean operation to establish the stiffener. Finally, a rapid stiffener modeling and analysis program were developed based on UG Open API, the modeling and analysis result validates the feasibility of the method.