2026年4月20日月曜日

test

Japan criticism

Japan criticism

2026年4月20日月曜日

test

2026年4月8日水曜日

What Is Beauty for Information?

What Is Beauty for Information?

LIGHT PAGE

What Is Beauty for Information?

The beauty of information is not in its amount, but in how it reaches you.
It conveys instantly. It is understood without hesitation.
That is beauty.

Even if it’s short, what reaches you will reach you

Long explanations are not always correct.
Even if it’s short, as long as only what is necessary remains, the information will reach you properly.

Beautiful information communicates before you read it

The moment you see it, you know what to do next.
That is not just appearance—it means the structure is well organized.

The beauty of information is in reducing

Rather than adding, it is about removing.
Reduce what is unnecessary and leave only what is needed.
As a result, the information becomes stronger.

Lightness also has meaning

Opens instantly. Reads instantly. Understands instantly.
That speed is also part of the beauty of information.

https://youtu.be/5-GB703L7E0

Please come back again.

There are things that will gradually become visible.

Buy “The Beauty of Information” on Amazon On Demand
This page values being light, short, and instantly reachable.

2026年4月5日日曜日

Micro Task Opportunity

 We are looking for people who can follow simple instructions.

Tasks:

  • Watch short content (5–10 seconds)
  • Answer one simple question
  • Do basic input or selection

This is NOT random clicking.
You must follow instructions carefully.

Better performance = more tasks and higher rewards.

Higher reward tasks are available.
Watch carefully and complete each step to unlock them.

Bookmark this page.
Return later for better paying tasks.

エルミート補間 vs キュービックスプライン徹底比較|違い・用途・Python実装まで完全ガイド

 エルミート補間とスプライン補間はどちらも曲線の補間方法ですが、それぞれ異なる特性と用途があります。以下にその違いを説明します。

エルミート補間 (Hermite Interpolation)

エルミート補間は、補間点での関数値だけでなく、補間点での関数の導関数(傾き)も考慮に入れて補間を行う方法です。これにより、より滑らかな曲線を生成することができます。

  • 特性:

    • 補間点の関数値とその導関数を指定する。

    • 補間点間の曲線は三次多項式で表されることが多い(キュービックエルミート補間)。

    • 連続した曲線の接続が滑らか(一次導関数が連続)。

  • 用途:

    • グラフィックスやアニメーションで、滑らかな動きを表現するため。

    • 制御点での傾きを指定して補間を行いたい場合。

スプライン補間 (Spline Interpolation)

スプライン補間は、複数の多項式を連結して全体として滑らかな曲線を生成する方法です。特にキュービックスプライン補間(Cubic Spline Interpolation)がよく使われます。

  • 特性:

    • 補間点の関数値のみを指定する。

    • 各補間点間の区間で三次多項式を使用する(キュービックスプライン)。

    • 二次導関数までが連続する滑らかな曲線を生成する。

    • グローバルに滑らかな曲線が生成されるため、局所的な変更が他の部分に影響することがある。

  • 用途:

    • データフィッティングや曲線のスムージング。

    • 科学技術計算でデータポイントを滑らかに接続するため。

    • コンピュータグラフィックスやCADで滑らかな曲線を描くため。

まとめ

  • エルミート補間は、補間点での関数値と導関数を利用して補間を行い、滑らかな接続を保ちながら補間点間の制御がしやすいです。

  • スプライン補間は、補間点の関数値のみを用い、よりグローバルな滑らかさを追求し、特に二次導関数まで連続した曲線を生成することができます。

用途や求める滑らかさのレベルによって、どちらの方法を使うか選ぶことができます。

# replace with your own samples
x = np.array([0, 1, 2, 3, 4])
y = np.array([3, 2, 5, 4, 4.5])

# 1) If you can estimate slopes (dy):
dy = np.gradient(y, x)           # crude finite-difference
hermite = CubicHermiteSpline(x, y, dy)

# 2) If not, just use CubicSpline:
spline  = CubicSpline(x, y, bc_type='natural')

Q1. “エルミート補間” と “キュービックスプライン補間” の一番大きな違いは?
A1. エルミート補間は各データ点の「位置」と「傾き(一次導関数)」を両方指定する手法。キュービックスプライン補間は位置だけを渡し、滑らかさ条件を満たすよう内部で傾きを自動計算する手法です。

Q2. Hermite の方が「局所修正が効く」とは?
A2. ある点の傾きを変えても影響はその区間の両側に限定され、他区間の形状はほぼ変わりません。スプラインは全区間を再計算するため、変更が全体に波及します。

Q3. Python で実装するときの代表的なクラスは?
A3. エルミート系は CubicHermiteSpline と PchipInterpolator、スプライン系は CubicSpline(SciPy)を使うのが一般的です。

Q4. “natural” と “clamped” スプラインの違いは?
A4. natural は端点の二次導関数を 0(曲率ゼロ)に固定、clamped は端点の一次導関数(傾き)をユーザーが指定します。

Q5. Hermite では傾きが必須? 推定できない場合は?
A5. 傾きを用意できないときは PchipInterpolator(単調 Hermite)で自動推定するか、有限差分で近似傾きを求めます。

Q6. データが単調増加・減少を保ちたいときは?
A6. PchipInterpolator が最も安全です。CubicSpline はオーバーシュートして単調性を壊す場合があります。

Q7. 2D や 3D の軌跡に適用するには?
A7. x(t), y(t), z(t) をそれぞれ独立に補間し、同じパラメータ t で評価すると平滑な軌跡になります。

Q8. 実行速度やメモリはどちらが重い?
A8. 補間係数の計算はどちらも O(n)、評価は 1 点あたり O(1) でほぼ同等。傾きを別途用意する分だけ Hermite がわずかに手間です。

Q9. グローバル誤差を最小にしたいなら?
A9. 曲率が連続(C²)のスプラインの方が一般に誤差が小さく滑らか。ただし正しい傾きを与えれば Hermite も同等以上の精度になります。

Q10. 画像拡大や音声リサンプリングではどちらが推奨?
A10. 単調性や可逆性が重要なら Pchip や Hermite 系、連続的な曲率が重要なら CubicSpline が向いています。

情報にとって美とはなにか

情報にとって美とはなにか

LIGHT PAGE

情報にとって美とはなにか

情報の美しさは、多さではなく、届き方にあります。
一瞬で伝わる。迷わず理解できる。
それが美しさです。

短くても、届くものは届きます

長い説明は、正しいとは限りません。
短くても、必要なものだけが残っていれば、情報はきちんと届きます。

美しい情報は、読む前に伝わります

見た瞬間に、次に何をすればよいかが分かる。
それは見た目だけではなく、構造が整っているということです。

情報の美とは、減らすことです

足すことより、削ること。
余計なものを減らして、必要なものだけを残す。
その結果、情報は強くなります。

軽いことにも意味があります

すぐ開ける。すぐ読める。すぐ分かる。
そうした速さもまた、情報の美しさの一部です。

https://youtu.be/5-GB703L7E0

また来てください。

少しずつ見えてくるものがあります。

「情報にとって美」をamazonオンデマンドでかう
このページは、軽く、短く、すぐ届くことを大切にしています。

2012年1月15日日曜日

Prisons in Cities : Inmate Li Guolin and Hiroshima Penitentiary by Seibun Satow


An inmate, Li Guolin who was convicted for attempted murder and other crimes, escaped from the Hiroshima prison on Jan. 11th, 2012.
With the news about the jailbreak of a 23-year-sentenced inmate a controversy over the location of a jail has surged. Why is it located in a middle of a city?

People wonder why facilities like prisons with potentials of causing problems to a society can't be built secluded from other law abiding citizens' life.

However, a prison is considered as a correction facility and has to be built in a city where the prison industry for a city is more accessible for it to be readily utilized.

The tasks in prisons are divided into 3 such as job training, house working and producing.
Job training includes welding, electric construction, maintaining cars and 60 other varieties.
House working includes cleaning and washing, namely tasks related to keep the facility. 80% of prisoners selects producing task.
If the prison is located in mountain or isolated island, it will be difficult to control the tasks. Shipping costs much time and money.
During the tasks in prison, prisoners are not allowed to talk.
Without Saturdays, Sundays, holidays, New year's eve and day, they had to work 8 hours in a day under the Labor Standards Act.

"Supplying stable working force, costing less and labor-control free etc., there are many points good for companies in prison workforce. Therefore around 2,150 companies currently apply it as of April, 2010." (Ministry of Justice, A guide of Prison-workforce)

Producing is applied by minor business. Bankruptcy, declining of orders or ordering abroad, which costs less make prison-workforce disengaged.

The work is mainly to produce industrial and craft products such as chests, tables, shogi (Japanese chess) boards, BBQ sets and aprons.

A bonus plan is provided for such production work.

This production work bonus is ranked into 10 stages, from trainee workers to first-rank workers, based on task performance as a norm.

The average amount provided monthly is currently a little less than 4,000 yen, and about 30% of the inmates receive the average total amount of 50,000 yen upon their release from the prison, and those who receive less than 10,000 yen accounts for a little more than 20%.

However, due to the prolonged recession period and the de‐industrialization, this production work has been reduced greatly.

The revenue prisons earned from selling goods and generating from inmates' production work has continually been reduced since the peak year of 1987 where the revenue was 15.7 billion Japanese yen, and in year 2000, it dropped below the level of 10 billion Japanese yen.

Additionally, with the movement of severe punishment, the number of inmates increased at one point.

The production work has decreased, but the number of inmates has increased. A cost of at least 2.5 million Japanese yen is required for one inmate per year. Social conditions are reflected even on the prisons.

This is more than a intuitive story that the worse the situation gets, the more criminals we get. Even Japan's industrial structures and population composition affect the situation within the prisons.

In Crime Report 2004, the signification to this point is indicated as follows.

There are some who have no labor practice, some who are self-oriented and lack spirits of cooperation, and some who do not have much patience among inmates. Through prison work, these inmates are expected to gain the results of :

(1) learning regular labor practice and disciplined daily manners,


 (2) maintaining their mental and physical health,


 (3) developing adaptability to social lives through group work with others,


4) cultivating the will to work and professional knowledge and skills,


 (5) cultivating the patience and concentration. As such, prison work holds an important position as the country's prison administration.


In Japan, there is such a specification. Thus, the Pennsylvania system, reforming inmates by applying self-contemplation method single-mindedly, is not taken.


This is the reason why prisons have to increase the number of workers for tasks which were before done by a smaller number of workers.

Also, they have increased the number of quality control tasks.

This is almost like an anti-capitalism, and might cause contradictions of social adaptation after the inmates are released from prisons. The Ministry of Justice, therefore, takes a course of action to increase the tasks outside of prisons such as volunteer works.

Doing so, prisons need to be located to urban areas all the more.

Supposing all inmates will eventually return to the society.

If they are isolated from the society, they will be grown to be people who will adapt only to that specific place, and this may lead to them repeating crimes after they return to the society.

In view of prevention of repeat convictions, prisons cannot help but to locate themselves in urban areas.

The prison escape by Li Guolin proves that it was bound to happen, setting aside that this inmate had had a history of escape before.

In America, they face inmates with a view that human nature is fundamentally evil, but Japan's view is that human nature is fundamentally good. But this is not the reason why the inmate managed to escape.

The prison's overcrowding issue has long been pointed out.

It is not an easy task observing ever-increasing inmates with a limited number of prison guards.

Additionally, there is a strong pressure of budgetary cutback.

The Ministry of Justice has already taken a measure.

The housing rate of inmates had hit 110% in the middle of year 2000, but it has now been reduced to less than 100% after some extensions of inmates' accomodation buildings at all prisons, operation of newly built PFI prisons (private prisons), and also the improvement in the housing rate due to the decrease in total number of inmates in recent years.

However, this is just an average standard.

Facilities for convicts who are serving long-term sentences and female inmates are continually having an overcrowding issue.


Additionally, the Hiroshima Penitentiary is known to have a wide range of housing ranks. This means they require many different types of prison guard resources.

It is not just a problem of the number of people.

The citizen judge system began in Japan, and the once-unknown world of criminal justice is gradually made clear.

Logically concluding the escape incident as a problem of the prison's monitoring system is nothing but just a recognition before the citizen judge system came in effect.

The general public need to discuss constructively about the opinions on the overcrowding problem of the inmates who are waiting to return to the society and also on how this problem shall be dealt with.

Also, expansion of the traditional non-housing punishment and the early release system shall be considered further. These, of course, depend on the budgets. Criminal cases should no longer be consumed just as news stories.

http://twcritique.jugem.jp/?eid=59