使用java的Excel correl()函数?(Excel correl() function with java?)

我需要在java中克隆excel correl()函数,我发现apache math commons库在org.apache.commons.math.stat.correlation包中有一些函数,但不确定它们是否相同,有些文档说excel correl()函数非常类似于PEARSON()excel函数但不完全相同,任何熟悉这个的人?

提前谢谢,米卡


I need a clone of excel correl() function in java, I found apache math commons library that has some functions in org.apache.commons.math.stat.correlation package, but not sure if they are the same, some docs says that excel correl() function is very similar to PEARSON() excel function but not quite the same, anybody familiar with this?

Thanks in advance, Mika


原文:https://stackoverflow.com/questions/3762455
2023-05-17 15:05

满意答案

如果您尝试以编程方式裁剪图像,我建议使用CSS clip属性,该属性将剪切绝对定位的元素。 指定的参数是要剪切的矩形的顶部,右侧,底部和左侧坐标。

以下示例代码将剪切您的图像为60px宽和200px高:

img {
    position: absolute;
    clip: rect(0px,60px,200px,0px);
}

If you are trying to crop your image programmatically, I would recommend using the CSS clip property, which will clip an absolutely positioned element. The arguments specified are the top, right, bottom, and left coordinates of the rectangle to clip to.

The following example code will clip your image to be 60px wide and 200px tall:

img {
    position: absolute;
    clip: rect(0px,60px,200px,0px);
}

相关问答

更多

隐藏着绝对位置的CSS溢出(CSS overflow hidden with absolute position)

由于图像的容器绝对定位,因此它位于“包含”div的流程之外。 你的选择是要么相对定位,要么用jQuery动态调整绝对定位div的尺寸。 Since the image's container is positioned absolutely, it is outside of the flow of the "containing" div. Your choices are to either position relatively or to adjust the dimensions of ...

绝对位置和溢出:隐藏(Absolute position and Overflow:hidden)

完全不可能做你想要的overflow: hidden和position: relative对于父div ..而您可以引入一个额外的小孩div并移动overflow: hidden 。 见: http : //jsfiddle.net/thirtydot/TFTnU/ HTML: <div id="parent"> <div id="hideOverflow"> <div style="width:1000px;background:#ccc">sdfsd</div> ...

位置绝对和溢出隐藏(Position absolute and overflow hidden)

使外部<div> position: relative和inner <div>到position: absolute 。 它应该适合你。 Make outer <div> to position: relative and inner <div> to position: absolute. It should work for you.

CSS:如何有位置:一个位置的绝对div:相对div不被一个溢出:被隐藏在一个容器上(CSS: How to have position:absolute div inside a position:relative div not be cropped by an overflow:hidden on a container)

一个工作的技巧是将位置#2 position: absolute而不是position: relative 。 当我们想要一个位置相对于外框的位置为position: absolute的内箱(这里是#3)时,我们通常会放置一个position: relative对于外框(这里是框#2)。 但请记住:对于框#3相对于框#2定位,框#2只需要定位。 有了这个变化,我们得到: alt text http://img.skitch.com/20100211-k9ksqaq4a46cpfjasitf1h4a...

如果孩子的位置:绝对,而父母是溢出:隐藏,为什么孩子溢出?(If the child is position:absolute and the parent is overflow:hidden, why does the child overflow?)

这是因为该规范将overflow定义为 此属性指定块容器元素的内容在元素的框溢出时是否被剪切。 它影响所有元素内容的剪裁,除了任何后代元素(及其各自的内容和后代),其中包含的块是视口或元素的祖先。 绝对定位的元素是一个后代,其含有的块由具有overflow: hidden的元素的祖先建立,如“包含块”的定义中所述, 如果元素的position: absolute ,则包含的块由最近的祖先建立,其absolute position , relative position或fixed 因此绝对定位的元...

绝对位置和溢出隐藏(position absolute and overflow hidden)

您需要为绝对定位的元素和相对于父元素的位置设置宽度。 http://jsfiddle.net/DOSBeats/mwxzT/7/ You need to set a width to the absolutely positioned element and position relative the parent. http://jsfiddle.net/DOSBeats/mwxzT/7/

溢出隐藏在父div的绝对位置(Overflow hidden with parent div in absolute position)

根据您的要求检查此代码: .wrapper { position: absolute; left: 100px; top: 100px; width: 400px; height: 350px; background: #666666; padding: 10px; overflow: hidden; } Check this code, as per your requirement: .wrapper { position: absolute; lef...

绝对定位div,隐藏溢出(Absolute positioned div with overflow hidden)

嗯,首先...... $(onMouse).css({ left: (mouseX - offSetX) + "px", top: fixY +"px" }); $(scrollDiv).css({ overflow: 'hidden', position: 'relative', height: '100px' }); 除此之外,点击时显示的div没有高度值或overflow:hidden 。 可能有意义的是给它一个边框,以便用户可以看到它切断的位置/原因......? ...

如果位置是绝对的,如何将溢出设置为隐藏在img标记上(How to set overflow to hidden on img tag if its position is absolute)

如果您尝试以编程方式裁剪图像,我建议使用CSS clip属性,该属性将剪切绝对定位的元素。 指定的参数是要剪切的矩形的顶部,右侧,底部和左侧坐标。 以下示例代码将剪切您的图像为60px宽和200px高: img { position: absolute; clip: rect(0px,60px,200px,0px); } If you are trying to crop your image programmatically, I would recommend using t...

溢出:当position:absolute时隐藏不起作用(Overflow: hidden not working when position: absolute)

你能用固定的吗? 如果是,下面的代码应该适合您。 (function($) { $sectionheight = $('.covered').height(); $.fn.coveringBad = function(options) { var settings = $.extend( { marginY: $sectionheight / 2, marginX: 30, ...

相关文章

更多

java+jsp来获取excel的数据?

首先我会在jsp页面上给用户一个上传组件,然后用户上传excel~然后自动后台去解析excel里面的数 ...

java jxl 操作excel 时老是这个错误

代码如下: InputStream iso = new FileInputStream(filepa ...

POI 操作 Excel的主要API

Java Aspose Cells 是一种纯粹的Java授权的Excel API

JXLS根据excel模板生成EXCEL并下载

JXLS根据excel模板生成EXCEL并下载,jxl.jar,jxls-core-0.9.9.jar ...

使用POI操作Excel和Word

前言:今天在项目中看到有小模块是上传Excel解释后保存到数据库的操作,好奇之下去了解了如何使用Apa ...

两种js function 声明方式

http://helephant.com/2012/07/14/javascript-function ...

POI 操作Excel公式

在执行这个公式

关于excel文件导入到mysql数据没有读取到文件问题

我最近在做一个oa项目,其中有一个excel文件导入到数据中去,用poi做的。我现在在后台能够得到文件 ...

lucene读取word,excel,pdf

前面在写lucene入门的时候,例子只能对txt文档建立索引,不能对word,excel,pdf建立索 ...

Java 简介

Java 简介 Java是由Sun Microsystems公司于1995年5月推出的Java面向对 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本