Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.326.761 Times

Fast String to Double Conversion 1.0

  Date Added: May 14, 2013  |  Visits: 558

Fast String to Double Conversion

Report Broken Link
Printer Friendly Version


Product Homepage
Download (44 downloads)



str2doubleq is equivalent to the Matlab built-in str2double function that converts char or cellstr array to appropriate double arrays. The drawback of built-in str2double is that it becomes very slow when the dataset becomes larger.str2doubleq exploits the mex-gateway to use c++ fast string handling capabilities and the std::stringstream properties. The conversion uses same ideas that is used in boost::lexical_castFunction has been tried to program exactly the same as str2double. However it does not currently support complex numbers. This means that it returns NaN values for inputs of type 'd+[+-]id+'Original demand for the function arised from certain market data parsing problems that had to be done in real time. Now Matlab can be as fast as traditional programming languages in these types of string parsing problems.Installation:*Copy the file str2doubleq.cpp somewhere in hard drive. (Example C:Teststr2doubleq.cpp)*Launch Matlab and compile the source file to generate machine dependent binary. If you have not selected a compiler this needs to be done first (run mex -setup in command window).* Source is compiled typing mex (Example mex C:Teststr2doubleq.cpp) *Place the generated str2doubleq.mexw32 (32-bit) or str2doubleq.mexw64 (64-bit) to Matlab's scope (set path- folder group)Now you can use the function in normal matlab fashion. Run the testcases script TestPerformance (included in zip-file)Updates:* Segmentation violation bug fixed.* Fixed a bug when empty array was passed. Now str2doubleq returns NaN instead of empty array. (Consistent with str2double)*Tweaked some extra performance by defining istringstream to be static variable inside the string_to_double helper function. This prevents the overhead that is being built in istringstream constructor in subsequent calls to function.*Made a note in the code about atof usage. Atof is propably the most optimal way to make the conversion. However its behaviour is not the same as built-in str2double (see the notes in source)

Requirements: No special requirements
Platforms: Matlab
Keyword: Bit Command Fashion Folder Groupnow Included Matlab Normal Scope Script Setup Str Doubleqmexw Testcases Testperformance Window Zipfileupdates
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


FAST STRING TO DOUBLE CONVERSION RELATED
E-Mail Tools  -  V-Mailer 1.2.1
V-Mailer is 32-bit command-line and batch mailer and supports SMTP authentication. It is a console application, which means that it can only be run from the DOS prompt or from inside a batch file. It willsend a message to any single email address.
200 KB  
Miscellaneous  -  Matlab driver DSO2090 Script 1.1
It has been already tested on the Protek, Hantek and Voltcraft models.
10 KB  
FTP Clients  -  FTP Shortcut 0.2
A small utility to make FTP Shortcuts easier to create and modify, using the standard Windows shell command to open FTP sites in normal 'explorer' windows. Passwords are always hidden and the files containing them are encrypted, making it a little...
456 KB  
Shell Enhancements  -  BackgroundCMD 1.0
BackgroundCMD is a command prompt folder background shell extension. It allows you to start a command prompt (an instance of cmd.exe) from within any directory that you're currently browsing. Simply right-click the directory background, and select...
117 KB  
Utilities  -  Helmholtz 0.1.0
PyCalCount is a basic "calorie-counting" program. With it, you enter food items along with their basic nutritional info (calories, total fat, sodium, protein and carbohydrates). You can then log "meals" by combining any number of food items.:
20.48 KB  
Communication  -  MOtion DEcision (MODE) model 1.0
This software has been realized at the Technology Lab, Department of Cognitive and Neural Systems, Boston University - http://techlab.bu.edu. The main author of the software is Praveen Pilly ( http://techlab.bu.edu/members/advait/ ).How does the...
16.6 MB  
Communication  -  Antenna's Array Synthesis 1.1
This is an old program (1.999) that I have written for understanding radiation patterns of antennas. Basically I was looking for the relationship between interference diagram (Fourier transform of ilumination, usually called Array Factor) and 3D...
225.28 KB  
Development Tools  -  XFOIL - MATLAB interface 1.0
I developed this interface some time ago, so I finally decided to refine and make it available here. It provides an interface between XFOIL and MATLAB, creating the files required by XFOIL to run, and reading the results back in an easy to access...
10 KB  
Development Tools  -  C-MEX file example for 'float' data types 1.0
If you have a C function with arguments that are float or pointer to float (rather than double or pointer to double) you can call the function from MATLAB and pass arguments to the function as single data types. For example, in this case we have a...
10 KB  
Programming  -  pyRadKDE 0.4.2
pyRadKDE is a wheel type command interface for KDE, heavily inspired by Kommando. Installation and setup: * easy_install pyRadKDE * go into KDE systemsettings -> keyboard shortcuts * add a gesture with the action...
10.24 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB