我正在寻找在半径的曲线透视中将3D坐标(x0,y0,z0)转换为2D (x1,y1)坐标的数学表达式,其中x1和y1的值是原始点的视角{-90°.. + 90°}.R
图片http://www.ntua.gr/arch/geometry/mbk/images/curv159.gif
(图片来自http://www.ntua.gr/arch/geometry/mbk/histor.htm)
谢谢 !
我一直在尝试导入以下Web服务:http://soap.genome.jp/KEGG.wsdl with $ {JAVA_HOME}/bin/wsimport:
wsimport -version
JAX-WS RI 2.1.6 in JDK 6
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
parsing WSDL...
[WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
line 19 of http://soap.genome.jp/KEGG.wsdl#types?schema1
[ERROR] undefined simple or complex type 'soapenc:Array'
line 19 of http://soap.genome.jp/KEGG.wsdl
(....)
Run Code Online (Sandbox Code Playgroud)
问题来自WSDL还是来自wsimport的实现?我应该使用其他工具吗?
谢谢
皮埃尔
在postscript中,cvs*operator*被称为将数字转换为字符串.我该怎么用?我试过了 :
100 100 moveto
3.14159 cvs show
Run Code Online (Sandbox Code Playgroud)
要么
100 100 moveto
3.14159 cvs string show
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
有帮助吗?
使用Javascript,是否有标准的方法来获取图像的绝对路径?img.getAttribute("src")仅返回srcHTML中声明的属性.
我是否可以使用一组参数启动Java WebStart应用程序,就像使用<param>标签配置applet一样?
谢谢
我正在尝试使用apache.commons.math库计算将R脚本转换为java .我可以用org.apache.commons.math.analysis.interpolation.LoessInterpolator代替R loess吗?我无法得到相同的结果.
编辑.
这里要说的是创建一个随机的阵列(X,Y)和计算与LoessInterpolator或通过调用R.在结束时黄土的Java程序,结果被打印.
import java.io.*;
import java.util.Random;
import org.apache.commons.math.analysis.interpolation.LoessInterpolator;
public class TestLoess
{
private String RScript="/usr/local/bin/Rscript";
private static class ConsummeInputStream
extends Thread
{
private InputStream in;
ConsummeInputStream(InputStream in)
{
this.in=in;
}
@Override
public void run()
{
try
{
int c;
while((c=this.in.read())!=-1)
System.err.print((char)c);
}
catch(IOException err)
{
err.printStackTrace();
}
}
}
TestLoess()
{
}
private void run() throws Exception
{
int num=100;
Random rand=new Random(0L);
double x[]=new double[num];
double y[]=new double[x.length];
for(int …Run Code Online (Sandbox Code Playgroud) 是否可以知道流/字符串是否包含可以匹配正则表达式的输入.
例如
String input="AA";
Pattern pat=Pattern.compile("AAAAAB");
Matcher matcher=pat.matcher(input);
//<-- something here returning true ?
Run Code Online (Sandbox Code Playgroud)
要么
String input="BB";
Pattern pat=Pattern.compile("AAAAAB");
Matcher matcher=pat.matcher(input);
//<-- something here returning false ?
Run Code Online (Sandbox Code Playgroud)
谢谢
我很快写了一个C程序,提取了一组gzip压缩文件的第i行(包含大约500,000行).这是我的C程序:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <zlib.h>
/* compilation:
gcc -o linesbyindex -Wall -O3 linesbyindex.c -lz
*/
#define MY_BUFFER_SIZE 10000000
static void extract(long int index,const char* filename)
{
char buffer[MY_BUFFER_SIZE];
long int curr=1;
gzFile in=gzopen (filename, "rb");
if(in==NULL)
{
fprintf(stderr,"Cannot open \"%s\" %s.\n",filename,strerror(errno));
exit(EXIT_FAILURE); }
while(gzread(in,buffer,MY_BUFFER_SIZE)!=-1 && curr<=index)
{
char* p=buffer;
while(*p!=0)
{
if(curr==index)
{
fputc(*p,stdout);
}
if(*p=='\n')
{
++curr;
if(curr>index) break;
}
p++;
}
}
gzclose(in);
if(curr<index)
{
fprintf(stderr,"Not …Run Code Online (Sandbox Code Playgroud) java ×5
c ×2
2d ×1
3d ×1
applet ×1
drawing ×1
hdf5 ×1
image ×1
javascript ×1
loess ×1
math ×1
numbers ×1
optimization ×1
parameters ×1
performance ×1
perspective ×1
postscript ×1
r ×1
regex ×1
search ×1
string ×1
url ×1
web-services ×1
wsdl ×1
wsimport ×1