S-PLUS for Windows - version 4.5 http://mercury.bio.uaf.edu/mercury/splus/splus.html#first 303 Irving S-PLUS is a powerful computing tool that combines the usefulness of a statistical analysis package with that of a publication quality graphics package and a matrix-based programming language. It's easy enough to use for quick and simple tasks, yet powerful enough for the most demanding ones. The goal of this demonstration is to provide a basic introduction to using S-PLUS. An S-PLUS session differs from that of other statistical software. You will find it to be an interactive approach where the results from one step lead to the next. This introduction to S-PLUS is necessarily limited in scope to only a handful of analyses. Once you become familiar with S-PLUS and browse through some of the online help topics, you will discover tools for practically any type of analysis you need. The basic S-PLUS module allows for time series, survival, and multivariate analyses, among others. Topics included in this tutorial: 1. Starting S-PLUS the first time 2. Some things to keep in mind 3. Beginning an analysis 4. Visualizing your data 5. Simple Linear Regression 6. Non-linear Regression 7. Polynomial Regression 8. Writing functions 9. What to do next Return to Mercury Home Page 1. Starting S-PLUS the first time ( Back to Top ) The first time you run S-PLUS from the computer lab, you will be asked for a directory where your work will be saved. S-PLUS will use this for a working directory whenever you start a session, however, you can easily change to another directory at any time. So before you start S-PLUS, decide on your default working directory and, if necessary, create it. Then when you start S-PLUS and it asks you for a start-up directory, click on "Browse" and proceed to select the desired directory. When you click "OK", S-PLUS will create the necessary subdirectories that it needs (_Data and _Prefs) and start the application. When S-PLUS opens, you will most likely see a dialog box to Select Data. Just click "Cancel" for now. After that, there may or may not be any open windows. You will want a Commands Window so the first thing to do is open one up if it isn't open already. From the Window menu, select Commands Window. Alternatively, you can click on the Commands Window button on the toolbar. Another useful window to have open is the Object Browser. Open this by clicking on the Object Browser button on the toolbar. You can set up your preferences so that both of these windows open when you start an S-PLUS session. From the Options menu, select General Settings, and then select the Startup tab. On the left hand side you will see a group of three items that you can Open at Startup. Check Command Line and Object Browser. You can also uncheck Select Data Dialog if you don't want that coming up every time. 2. Some things to keep in mind ( Back to Top ) Everything in S-PLUS is some kind of object. Objects can have different modes (numeric, character, list, function, etc.) with different structures (scalar, vector, matrix, etc.) and different classes (data frame, linear models result, etc.). Almost every command you execute in S-PLUS uses one or more functions. Functions are called by their name followed by a set of parentheses. If any arguments are passed to the function, they are listed within the parentheses. The parentheses must always be present whether or not there are any arguments. For example, to get a listing of all the objects in your working directory, you would use objects() . If you wanted a list of objects in another directory in your search path, you might use objects(where=3) . Use the assignment operator to create objects. The assignment operator is the "less than" symbol followed by a hyphen ( - ) or the underscore ( _ ). For example, to create an object called tmp and assign it the value 3, you would enter tmp - 3 or tmp_3 . The equal sign (=) is used almost exclusively for passing arguments to functions, like the last command in comment b above. S-PLUS is case sensitive. Keep that in mind when you're naming objects or calling functions. We could create another object called Tmp that would be separate and distinct from tmp . If you already have an object with the name tmp and you assign something else to an object with that name, then the first object is overwritten. Be careful not to lose something you want to keep. Once you've created objects, you may want to get rid of them later . Use the function rm() with the object names as arguments. For example, rm(tmp) . You can recall previous commands with the up-arrow and down-arrow keys. Once you've located the command you want, you can hit enter to execute the command as is, or you can edit the line first. This can save time, especially with complicated commands. Open a graphics window with the function graphsheet() . Make use of the online help. Go to the help index and look up graphsheet. You'll find a description of all possible arguments that can be used, a full discussion on its use, and some examples of how it can be used. If you just need a reminder of what arguments can be passed to a particular function, use the args() function with the function name in the parentheses. For example, try args(graphsheet) to see what arguments can be used with that function and what default values they may have. In the examples that follow, pay very close attention to all associated punctuation. Things like commas and parentheses are absolutely critical to S-PLUS understanding what you want to do. If you get an error after executing a command, the first thing to do is check the syntax. That is the cause of most errors. S-PLUS almost always ignores spaces, so whether you type tmp_c(1,2,3) or tmp _ c ( 1, 2, 3) , you get the same result. The Escape key serves as your abort button. If something goes wrong or you're suddenly seeing an endless array of numbers scrolling by, you can hit the Escape key to quit whatever you're doing and get you back to the command prompt. This does not kick you out of S-PLUS altogether。 More interesting following: http://mercury.bio.uaf.edu/mercury/splus/splus.html#first
Now close the windows Robert Frost Now close the windows and hush all the fields: 现在就关上窗子,让周围安静 If the trees must, let them silently toss; 如果树林也必需静下来,那让它们慢慢地摇 No bird is singing now, and if there is, 鸟们现在也不再歌唱?如果还有鸟留下来? Be it my loss. 那么,请我的失落重新回来 It will be long ere the marshes resume, 我的失落出现在那湿地形成之前 It will be long ere the earliest bird: 它甚至先于那些古老的鸟儿而生 So close the windows and not hear the wind,因此关上窗子吧!不要再听那风声 But see all wind-stirred. 但观它们被风卷起在空中
.NET Framework是用于Windows的新托管代码编程模型。它强大功能与新技术结合起来,用于构建具有视觉上引人注目的用户体验的 应用程序 ,实现跨技术边界的无缝通信,并且能支持各种业务流程。 别跟哥说你用不上这个软件,这个软件对于实用较大开发的软件,比如说我们的常用的mapgis二次开发,比如说我们用的卡本,cad等等特别是一些大型游戏如果没有这个基本上就安装都安装不了,让你超级郁闷,而这个软件却不是那么的稳定。 XP的系统,装好后常出现下面这种情况, .NET framework2.0无法卸载,无法安装,无法修复 在2003中也常出现,但是我们在系统中找不到卸载.net2.0 3.0的删除程序,手动删除又怕注册表中没删除而造成更大的错误!同时还有一件更郁闷的事情就是常用的强制卸载软件根本不能卸载它,所以在这里我就推荐这样一个手写的小软件,很好用的 下面是转载作者的说明 ---------------------------------------------------华丽的分界线-------------------------------------------------------- 。NET Framework Cleanup Tool User's Guide Introduction This .NET Framework cleanup tool is designed to automatically perform a set of steps to remove selected versions of the .NET Framework from a computer. It will remove files, directories, registry keys and values and Windows Installer product registration information for the .NET Framework. The tool is intended primarily to return your system to a known (relatively clean) state in case you are encountering .NET Framework installation, uninstallation, repair or patching errors so that you can try to install again. There are a couple of very important caveats that you should review before using this tool to remove any version of the .NET Framework from your system: This tool is designed as a last resort for cases where install, uninstall, repair or patch installation did not succeed for unusual reasons. It is not a substitute for the standard uninstall procedure. You should try the steps listed in this blog post before using this cleanup tool. This cleanup tool will delete shared files and registry keys used by other versions of the .NET Framework. If you run the cleanup tool, you will need to perform a repair/re-install for all other versions of the .NET Framework that are on your computer or they will not work correctly afterwards. Download location The .NET Framework cleanup tool is available for download at the following locations: 本网站下载地址: dotnetfx_cleanup_tool.zip http://u.115.com/file/f263f0bc14 (外站下载链接) The .zip file that contains the tool also contains a file named history.txt that lists when the most recent version of the tool was published and what changes have been made to the tool over time. Supported products The .NET Framework cleanup tool supports removing the following products: .NET Framework - All Versions .NET Framework - All Versions (Tablet PC and Media Center) .NET Framework - All Versions (Windows Server 2003) .NET Framework - All Versions (Windows Vista and Windows Server 2008) .NET Framework 1.0 .NET Framework 1.1 .NET Framework 2.0 .NET Framework 3.0 .NET Framework 3.5 .NET Framework 4 Not all of the above products will appear in the UI for the .NET Framework cleanup tool on every operating system. The cleanup tool contains logic so that if it is run on an OS version that includes the .NET Framework as an OS component, it will not offer the option to clean it up. This means that running the cleanup tool on Windows XP Media Center Edition or Tablet PC Edition will not offer the option to clean up the .NET Framework 1.0, running it on Windows Server 2003 will not offer the option to clean up the .NET Framework 1.1 and running it on Windows Vista or Windows Server 2008 will not offer the option to clean up the .NET Framework 2.0 or the .NET Framework 3.0. When choosing to remove any of the above versions of the .NET Framework, the cleanup tool will also remove any associated hotfixes and service packs. You do not need to run any separate steps to remove the service pack(s) for a version of the .NET Framework. Silentinstallation mode The .NET Framework cleanup tool supports running in silent mode. In this mode, the tool will run without showing any UI, and the user must pass in a version of the .NET Framework to remove as a command line parameter. To run the cleanup tool in silent mode , you need to download the cleanup tool, extract the file cleanup_tool.exe from the zip file, and then run it using syntax like the following: cleanup_tool.exe /q:a /c:"cleanup.exe /p name of product to remove" The value that you pass with the /p switch to replace name of product to remove in this example must exactly match one of the products listed in the Supported products section above. For example, if you would like to run the cleanup tool in silent mode and remove the .NET Framework 1.1, you would use a command line like the following: cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 1.1" One important note – as indicated above, the cleanup tool will not allow you to remove a version of the .NET Framework that is installed as part of the OS it is running on. That means that even if you try this example command line on Windows Server 2003, the tool will exit with a failure return code and not allow you to remove the .NET Framework 1.1 because it is a part of that OS. Similarly, you cannot use the cleanup tool to remove the .NET Framework 1.0 from Windows XP Media Center Edition or Windows XP Tablet PC Edition or remove the .NET Framework 2.0 or 3.0 from Windows Vista or Windows Server 2008. In addition, if you run the cleanup tool on an OS that has any edition of the .NET Framework installed as a part of the OS, it will prevent you from using the .NET Framework - All Versions option because there is at least one version that it cannot remove. If you are planning to run the cleanup tool in silent mode, you need to make sure to detect what OS it is running on and not pass in a version of the .NET Framework with the /p switch that is a part of the OS or make sure that you know how to handle the failure exit code that you will get back from the cleanup tool in that type of scenario. Unattended installation mode The .NET Framework cleanup tool supports running in silent mode. In this mode, the tool will run and only show a progress dialog during removal, but will require no user interaction. Unattended mode requires the user to pass in a version of the .NET Framework to remove as a command line parameter. To run the cleanup tool in unattended mode , you need to download the cleanup tool, extract the file cleanup_tool.exe from the zip file, and then run it using syntax like the following: cleanup_tool.exe /q:a /c:"cleanup.exe /p name of product to remove /u" For example, if you would like to run the cleanup tool in unattended mode and remove the .NET Framework 1.1, you would use a command line like the following: cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 1.1 /u" Exit codes The cleanup tool can returns the following exit codes: 0 - cleanup completed successfully for the specified product 3010 - cleanup completed successfully for the specified product and a reboot is required to complete the cleanup process 1 - cleanup tool requires administrative privileges on the machine 2 - the required file cleanup.ini was not found in the same path as cleanup.exe 3 - a product name was passed in that cannot be removed because it is a part of the OS on the system that the cleanup tool is running on 4 - a product name was passed in that does not exist in cleanup.ini 100 - cleanup was able to start but failed during the cleanup process 1602 - cleanup was cancelled Log files The cleanup tool creates the following log files: %temp%\cleanup_main.log - a log of all activity during each run of the cleanup tool; this is a superset of the logs listed below as well as some additional information %temp%\cleanup_actions.log - a log of actions taken during removal of each product; it will list files that it finds and removes, product codes it tries to remove, registry entries it tries to remove, etc. %temp%\cleanup_errors.log - a log of errors and warnings encountered during each run of the cleanup tool
我想若从形式化角度研究WSN/DSN协议,形式语义是必不可少的工具,而形式语义与Functional Languages关系密切,所以我准备2周时间学习一下SML。条件有限,OS为Windows,书采用了L.C.Paulson《ML for the Working Programmer》,中文版是柯韦译的《ML程序设计教程》,编译器为SML/NJ。以后可加装Debain Linux,真怀念我原来配置的Debain 5.0系统! 1。如何编译SML文件? notes-011001.pdf A:SML多采用行命令编译方式,用惯了C(Gnu Linux / Windows),特不适应SML行命令方式,主要是不宜于调试。只好读其指南,看看有方法简化编译: 引自《Notes on Programming Standard ML of New Jersey》一书: 建立foo.sml 文件: fun double (x:int):int = 2 * x; fun square (x:int):int = x * x; fun power (x:int,y:int):int = if (y=0) then 1 else x * power (x,y-1); 获取当前工作目录: OS.FileSys.getDir: - OS.FileSys.getDir (); 修改 - OS.FileSys.chDir /home/riccardo/work/sml; 例如: foo.sml在C盘 设置 - OS.FileSys.chDir C:\\; - use foo.sml; sml-tutorial.pdf Standard ML http://en.wikipedia.org/wiki/Standard_ML#References Alice ML: http://www.ps.uni-saarland.de/alice/
Building as a Standalone ApplicationCreate a batch file which sets the following environment variables: A3DT, ARCH, and PATH. An example of such a batch file is shown below: Choose from the two options below Option 1: Open the Visual Studio 2005 Command Prompt window by selecting: StartAll ProgramsMicrosoft Visual Studio 2005Visual Studio ToolsVisual Studio 2005 Command Prompt .Drop the batch file created in the previous step into the command window and select Enter . Option 2: Add the following line to the batch file created in Step 1:C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat. An example of such a batch file is shown below and follow the next steps. Select Start in the lower left corner of your screen.Select Run ; this opens a new Run window:Typecmdin the window as shown below: Drag and drop the batch file created using the above steps in the newly launched command window.Choose Enter . This runs the batch file and sets the required paths needed to build an ACIS-based console application.Typedevenvin the command window.Select FileNewProject or enter Ctrl+Shift+NSelect Win32 from the Visual C++ Option and Win32 Console Application from Templates; enter an appropriate name and location, and then select OK . This creates a stock project: for example,MyfirstAcisProject The Win32 Application Wizard pops up; select Next .From the menu Application Settings Application , select "Console application". From Additional options , select "Empty project". Finally, select Finish .Under Project , select Add New Item… .In the Add New Item window, select Code for the category.Choose C++ file (.cpp) as the template to use. Provide the desired name and location.Select Add .Next, setup the project settings. Open the Property Pages by selecting the project name under the Solution Explorer. Enter Alt-F7 or right click and select "Properties". The following image is a sample Project Properties screen. Note: Make certain that this is the properties screen for the project and not an item in the project. Now expand the Configuration Properties and select C/C++ from the resulting list.Select the Configuration Manager button and set the Active Solution configuration as follows and then select Close .Release (if ARCH=NT_VC8_DLL)Debug (if ARCH=NT_VC8_DLLD)Expand the C/C++ list and select General and enter $(A3DT)/include in the "Additional Include Directories" field.Next select the "Preprocessor" option from the C/C++ tree and append NT_VC8_DLL(or NT_VC8_DLLD), ACIS_DLL, SPA_NO_AUTO_LINK.Expand the "linker" tree and select the General option and enter $(A3DT)/lib/$(ARCH) in the "Additional Library Directories" field.Next select the Input option and enter the following libraries in the "Additional Dependencies" field: SPAAcis.lib SpaLicErrGUI.lib.Select Apply , then OK .Copy the code sample below into the CPP file.Select Build/Rebuild Solution (Ctrl+Alt+F7) .Your program is ready to use. Make certain to add the license key to begin making calls to the ACIS functions.Code to Copy into CPP File Code to Copy into CPP File for Building as a Standalone Application Licensing Headers The following code is the licensing header and sample ACIS calls. #include "license.hxx" #include "spa_unlock_result.hxx" #include "spa_lic_err_gui.hxx" Sample ACIS calls to create a sphere and then to write it into a SAT file: #include "position.hxx" #include "body.hxx" #include "cstrapi.hxx" // SAMPLE // Create an Entity List to add entities ENTITY_LIST entityList; // Create Sphere // BODY* sphere = NULL; api_solid_sphere(SPAposition(30, 30, 30), 10, sphere,NULL); entityList.add(sphere); // Create sat File // create_sat_file (entityList, "MyFirstAcisProject.sat"); // End SAMPLE
GMT − The Generic Mapping Tools data processing and display software package GMT is a collection of public-domain Unix tools that allows you to manipulate x,y and x,y,z data sets (filtering, trend fitting, gridding, projecting, etc.) and produce PostScript illustrations ranging from simple x-y plots, via contour maps, to artificially illuminated surfaces and 3-D perspective views in black/white or full color. Linear, log10, and power scaling is supported in addition to 25 common map projections. The processing and display routines within GMT are completely general and will handle any (x,y) or (x,y,z) data as input.Significantly improved versions (3.1-3.3, 3.3.1-6), 3.4, 3.4.1-5, and 4.0-4.5.3 were released between November 1998 and July 2010, culminating in the Mar 2011 introduction of 4.5.6. GMT now is used by 15,000 users worldwide in a broad range of disciplines. The homepage of GMT is http://www.soest.hawaii.edu/gmt/ The installation for windowsis as follows: Reprint from the website 1.准备文件如下 (文件下载网址:http://gmt.soest.hawaii.edu/) netcdf-4.1.1 GMT_basic_install.exe GMT_pdf_install.exe GSHHS_highfull_install.exe 2.执行安装以下文件 (以安装到D盘为例) GMT_basic_install.exe GMT_pdf_install.exe GSHHS_highfull_install.exe 此时会在D:\GMT目录下产生有以下文件夹:bin include lib share 3.把netcdf-4.1.1文件拷到D:\GMT目录下 (解压netcdf 后的文件) 4.把D:\GMT\share下所有 *.d; *.cdf; *.ps 文件及conf文件夹下的所有文件拷到D:\GMT目录下 5.在D:\GMT目录下创建gmt.bat文件 目的:设置GMTHOME,HOME 和 NETCDF,修改PATH,LIB,INCLUDE下面是gmt.bat文件的内容,拷贝下来再,保存为gmt.bat, 然后根据自己的情况加以修改,这里以上面创建的目录为例。 gmt.bat文件的内容如下: ECHO OFF REM ---------------------------------------------------- REM REM @(#)gmtenv.bat 1.10 03/08/00 REM REM Copyright (c) 1991-2000 by P. Wessel and W. H. F. Smith REM See COPYING file for copying and redistribution conditions. REM REM This program is free software; you can redistribute it and/or modify REM it under the terms of the GNU General Public License as published by REM the Free Software Foundation; version 2 of the License. REM REM This program is distributed in the hope that it will be useful, REM but WITHOUT ANY WARRANTY; without even the implied warranty of REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the REM GNU General Public License for more details. REM REM Contact info: www.soest.hawaii.edu/gmt REM -------------------------------------------------------------------- REM REM Sets the GMT environment needed under WinXP. REM REM Author: Paul Wessel, 07-MAR-2000 REM REM ---------------------------------------------------- REM Set NETCDF, GMTHOME, and HOME: REM ---------------------------------------------------- SET NETCDF=d:\GMT\netcdf-4.1.1 SET GMTHOME=d:\GMT SET HOME=d:\GMT REM ---------------------------------------------------- REM Must set INCLUDE and LIB if GMT source is to be used REM OR compiled. If not, REM these lines out. REM ---------------------------------------------------- SET INCLUDE=%INCLUDE%;%NETCDF%\INCLUDE SET LIB=%LIB%;%NETCDF%\LIB;%GMTHOME%\LIB REM ---------------------------------------------------- REM STOP HERE, Now appending to PATH: REM ---------------------------------------------------- SET PATH=%PATH%;%GMTHOME%\BIN;%NETCDF%\LIB REM ---------------------------------------------------- ECHO GMT 4.5.2 Environment initialized doskey 6.进入DOS,在DOS下进入D:\GMT执行gmt.bat,显示如下: D:\GMTgmt.bat D:\GMTECHO OFF GMT 4.5.2 Environment initialized 此时可输入一个命令psxy等进行测试,如果出现此命令的说明,则表示成功了。 7.此外gawk也是window下常用程序,可以在下面网站下载 http://gnuwin32.sourceforge.net/packages/gawk.htm 下载后,安装在D:\GMT 目录下(可以安装在任何目录下),只要把D:\GMT\GnuWin32\bin下面的所有文件拷贝到 D:\GMT\bin 下就可以了。 8.PS查看器ghostview的安装 在安装Ghostview前先安装Ghostscript,这两个软件都可以网上自由获取 http://pages.cs.wisc.edu/~ghost/ 按先后顺序依次安装,可以安装在任何一个文件夹。安装后把gs\gs8.63\bin 下的gswin32.exe可执行文件和Ghostgum\gsview下的gsview32.exe可执行文件拷贝到D:\GMT\bin 下即可。 近来初学GMT软件,在Win下先尝试安装了该软件,安装过程中借鉴了很多网上分享的资料,对一些作者表示感谢。