当前位置: 首页>>代码示例>>Python>>正文


Python Analysis.makeregression方法代码示例

本文整理汇总了Python中Analysis.makeregression方法的典型用法代码示例。如果您正苦于以下问题:Python Analysis.makeregression方法的具体用法?Python Analysis.makeregression怎么用?Python Analysis.makeregression使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Analysis的用法示例。


在下文中一共展示了Analysis.makeregression方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: array

# 需要导入模块: import Analysis [as 别名]
# 或者: from Analysis import makeregression [as 别名]
     
     diffx_exp = diffx[frame_select  & ~splitter]
     diffy_exp = diffy[frame_select  & ~splitter]
     newx_exp = newx  [frame_select  & ~splitter]
     newy_exp = newy  [frame_select  & ~splitter]
     goodx_exp = goodx[frame_select  & ~splitter]
     goody_exp = goody[frame_select  & ~splitter]
     xl_exp = xl      [frame_select  & ~splitter]
     yl_exp = yl      [frame_select  & ~splitter]
     xr_exp = xr      [frame_select  & ~splitter]
     yr_exp = yr      [frame_select  & ~splitter]
     framesetnum_exp = framesetnum[frame_select  & ~splitter]
     
     if opts.save_map2:
         mapping2 = Analysis.makeregression(diffx_fids, diffy_fids, 
                                 newx_fids, newy_fids, order=1,
                                 savefile = 'offsets'
                                     + os.path.splitext(os.path.basename(imgname))[0],)
     else:
         mapping2 = Analysis.makeregression(diffx_fids, diffy_fids, 
                                 newx_fids, newy_fids, order=1)
     dx, dy = mapping2(newx_exp, newy_exp)
     newx_exp += dx
     newy_exp += dy
     
     new_goodx.extend(goodx_exp)
     new_goody.extend(goody_exp)
     new_diffx.extend(goodx_exp - newx_exp)
     new_diffy.extend(goody_exp - newy_exp)
 goodx = array(new_goodx)
 goody = array(new_goody)
 diffx = array(new_diffx)
开发者ID:petercombs,项目名称:YildizLabCode,代码行数:34,代码来源:CombineWHSpots.py


注:本文中的Analysis.makeregression方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。