Returns weighted percentiles of a sample given the weight vector w
% The idea is to give more emphasis in some examples of data as compared to
% others by giving more weight. For example, we could give lower weights to
% the outliers.
% The motivation to write this function is to compute percentiles for Monte
% Carlos simulations where some simulations are very bad (in terms of goodness
% of fit between simulated and actual value) than the others and to give
% the lower weights based on some goodness of fit criteria.
Introduction to DirectShow:
Basic & important concepts related to DirectShow. Through this guide, the reader could build his/her own 1st DirectShow application with furthermore much detailed ideas/thinkings.
Here we are at the crossroads once again
Youre telling me youre so confused
You cant make up your mind
Is this meant to be
Youre asking me
Trademark
But only love can say - try again or walk away
But I believe for you and me
The sun will shine one day
So Ill just play my part
And pray you ll have a change of heart
But I cant make you see it through
Thats something only love can do
Face to face and a thousand miles apart
Ive tried my best to make you see
Theres hope beyond the pain
If we give enough if we learn to trust
[Chorus]
I know if I could find the words
To touch you deep inside
Youd give our dream just one more chance
Dont let this be our good-bye
The goal of our final project was to design an efficient elevator simulator that can accept input from a user and mechanically operate (on a small scale) a system of 4 floors and 3 elevators using pulleys and stepper motors. Users enter input using physical pushbuttons or the computer. This input is then processed by the MCU and orders are given to the elevators. We attempted to devise an algorithm that can optimally handle any number of floors. This project seemed like a fun challenge and something that had practical applications. Both of us have been frustrated at times by the inefficiency of some of the elevators here at Cornell, and we wanted to see if we could do a better job.
This a simple database management system. It doesn t use any other code (i.e. ODBC, ADO, etc.) and has it s own database file format. I wrote it because I found the other DBMSs code too bulky and hard to debug. It s designed for small applications and I doubt it could handle anything on a large scale. A sample program included in the .zip shows how everything works. The database project is a library project, so you ll have to compile and link with the .lib file to get everything working. Pros: - You have the source code so you know exactly what it is doing - Database files are very small - Small and fast code Cons: - Can t handle large amounts of records (more than 65000ish) - Doesn t support SQL (you have to search the database by cycling through the records and testing them against your constraints) - Each database file can only have one table.
sim 文件系統(tǒng)In addition, its quality of service reduces because of reliance on traditional circuit-switched network elements. At that former time, people hoped to build a based system, which could access a centralized server network, would always have access to the latest traffic information and could provide web links. What this trend is a momentous request for mobile services based on high-speed packet data transfer. Hence, a new standard, GPRS, came into being in order to fill people’s bill.
內(nèi)存管理程序,功能與FASTMM相似,PLEASE NOTE: There are two ways to install BigBrain. You may use the
memory manager code natively compiled into your EXE or you can use
an included external DLL which will allow you to share memory across
multiple DLLs with one central place for memory management. Using the DLL
allows your application to share strings, and serves the same purpose
as the ShareMem unit included with Delphi. BigBrainShareMem.dll should
be 100% compatible with the DelphiMM.dll and could even simply be renamed
to DelphiMM.dll to simplify deployment.
For solving the following problem:
"There is No Free Lunch"
Time Limit: 1 Second Memory Limit: 32768 KB
One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free.
However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
Whenever there is an application to write, breaking it up to small pieces is a great idea. The smallest piece of any application would probably be a data object, or a simple Bean in Java. Java Beans are simple Java classes that have a distinctive look and behavior. Their simplest purpose is to contain data and they accomplish this by having properties. Each property is actually a data-member containing/referencing the actual data and a couple of methods, a getter method and a setter method. Thus, the simplest data-bean describing a person could be expressed as such: