Sep 24, 2010

resolve multiple numbers from getline string

string datafile = "e:\\reg.txt";
int pos;

ifstream datastream;
datastream.open(datafile.c_str(), ios.binary);

if (!datastream.is_open()) {
cout<< "Data files not opened, end of running!";
exit(0);
}

string myString;
while(getline(datastream,myString)){
vector str;
std::istringstream iss(myString);
while(iss){
iss >> pos;
str.push_back(pos);
}

data.push_back(str);
}

Sep 21, 2010

Percetion

Projection &Knowledge & logic together make our concious

Sep 17, 2010

Heart Disease and its true medicine

Less than a century ago heart disease was an extremely rare disease. However, today it is the cause of death of more people in the world than all other deadly diseases taken together. The most encompassing researches and studies on heart health have indicated that lack of happiness and gratification is by far the biggest risk factor resulting in heart problems. Since happiness is amongst the principal expressions of love, only those medicines that are love-based can truly and completely heal the heart and protect one from disease and ageing. If fear is the motivating factor that compels someone to go for a particular treatment or initiate major changes in life style or diet the chances of disease prevention or recovery are minimized. The current approaches for achieving heart’s health, free from any life threatening condition, are primarily symptom-orientated and do not deal with the underlying causes.

Cited from [http://www.lifepositive.com/body/body-holistic/heart/heart.asp]

Aug 15, 2010

Introduction of a paper

[Background and the focus domain]
[Literature review and evaluation]
[In this article, what you are proposing]
[Paper structure]

The domain should be introduced in a reverse triangle way. That is, from bigger domain to smaller one, and finally point you are working on.

This section discusses the results and conclusions of previously published studies, to help explain why the current study is of scientific interest[cited from http://classweb.gmu.edu/biologyresources/writingguide/Introduction.htm]

Aug 5, 2010

WiMax and LTE

coming from Father tech
WiMax Computer guys WiFi
LTE Cellphone guys GPRS

Jul 27, 2010

Parameter Estimation in System Identification

1. System Identification = Model structure selection or define + Model parameter estimation
2. Parameter estimation is a mapping: Z----> sigma*
3. Essence of Model is its prediction ability.
4. Two criteria:
Scalar norm or function of errors
Data are not related to Predictive error.


Jul 26, 2010

pem and lsqcurvefit

they are really sensitive to initial condition and parameter values.
this really haunting on me several days.

Jul 21, 2010

Something Help Kalman

Hinfinity Filter is a minmax filter, which minimise worsts estimation. Meanwhile, Kalman minimise average estimation error.

Kalman Smoother is useful, when you want to estimate the state trajectory after obtaining the whole signal serials.

Steady State Kalman filter have constant K and P.

Jul 13, 2010

State Space Realization of IIR

cited from [https://ccrma.stanford.edu/~jos/fp/State_Space_Realization.html]

IIR filters have an extensively used matrix representation called state space form (or ``state space realizations''). They are especially convenient for representing filters with multiple inputs andmultiple outputs (MIMO filters). An order $ N$ digital filter with $ p$ inputs and $ q$ outputs can be written in state-space form as follows:

$\displaystyle {\underline{x}}(n+1)$$\displaystyle =$$\displaystyle A {\underline{x}}(n) + B \underline{u}(n)$
$\displaystyle \underline{y}(n)$$\displaystyle =$$\displaystyle C {\underline{x}}(n) + D\underline{u}(n) \protect$(F.4)

where $ {\underline{x}}(n)$ is the length $ N$ state vector at discrete time $ n$, $ \underline{u}(n)$ is a $ p\times 1$ vector of inputs, and $ \underline{y}(n)$ the $ q\times 1$ output vector. $ A$ is the $ N\times N$ state transition matrix, and it determines thedynamics of the system (its poles, or resonant modes).