Ignore:
Timestamp:
01/15/07 21:46:52 (17 years ago)
Author:
bittner
Message:

merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp

    r1976 r1983  
    1010 
    1111namespace GtpVisibilityPreprocessor { 
     12 
     13#define MUTATION_USE_CDF 0 
    1214 
    1315 
     
    729731   
    730732  float pContributingRays = contributingRays/(float)vssRays.size(); 
    731   float importance = 1.0f/(pContributingRays + 1e-5); 
     733  float importance = sqr(1.0f/(pContributingRays + 1e-5)); 
    732734  // set this values for last contributingRays 
    733735  int index = mBufferStart - 1; 
     
    739741  } 
    740742 
    741    
     743#if MUTATION_USE_CDF 
    742744  // compute cdf 
    743745  mRays[0].mCdf = mRays[0].mImportance/(mRays[0].mSamples+1); 
     
    749751        mRays[i].mCdf *= scale; 
    750752  } 
    751  
     753#endif 
     754   
    752755  cout<<"Importance = "<< 
    753756        GetEntry(0).mImportance<<" "<< 
     
    888891 
    889892  int index; 
    890 #if 1 
     893 
     894#if !MUTATION_USE_CDF 
    891895  // get tail of the buffer 
    892896  index = (mLastIndex+1)%mRays.size(); 
Note: See TracChangeset for help on using the changeset viewer.